mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-20 00:24:17 +01:00
Add projects
This commit is contained in:
32
Examples/Webview/SwiftTest1/ViewController.swift
Executable file
32
Examples/Webview/SwiftTest1/ViewController.swift
Executable file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// ViewController.swift
|
||||
// SwiftTest1
|
||||
//
|
||||
// Created by Jacob Holman on 6/3/14.
|
||||
// Copyright (c) 2014 Jacob Holman. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class ViewController: UIViewController {
|
||||
@IBOutlet var helloWeb : UIWebView
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
}
|
||||
|
||||
@IBAction func buttonTapped(AnyObject) {
|
||||
|
||||
helloWeb.loadRequest(NSURLRequest(URL:NSURL(string:"https://www.google.com")))
|
||||
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user