The code I was using for Xcode 6.4 to open a uiwebview doesn't load for Xcode 7 when starting simulator.
class ViewController: UIViewController {
@IBOutlet var webLaundry: UIWebView!
func loadWebPage(){
let theURL = "http://www.google.com"
let theRequestURL = NSURL (string: theURL)
let theRequest = NSURLRequest (URL: theRequestURL!)
webLaundry.loadRequest(theRequest)
}
override func viewDidLoad() {
super.viewDidLoad()
loadWebPage()
// Do any additional setup after loading the view, typically from a nib.
}
What should I change to fix this issue?