0

I'm new to xcode and swift

Im using this code to create a webview app just for myself, the app loads up with the starter screen, but then its blank white, the website does not load. What am i missing ?

import UIKit
import WebKit

class ViewController: UIViewController {
    @IBOutlet weak var myWebView: UIWebView!


    var webview: WKWebView?

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        let url = NSURL (string: "http://www.gunchester.com");
        let requestObj = NSURLRequest(URL: url!);
        myWebView.loadRequest(requestObj);
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }

}
rmaddy
  • 307,833
  • 40
  • 508
  • 550
Pablo
  • 1

0 Answers0