I try to add address in several ways, but it's not working all the time. Anybody know the right code?
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var Dziennik: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
webView.loadRequest(NSURLRequest(URL: NSURL(string: "http://www.google.com")!))
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
let myURL = NSURL(string: “http://www.link.com”); let myURLRequest:NSURLRequest = NSURLRequest(URL: myURL!); myWebView.loadRequest(myURLRequest);
– Simon Walachowski Oct 26 '16 at 19:10