Hi. I want to make an application on IOS.
Opened the application - loaded a certain site
The code is compiled, but the output is a white screen.
Is there a problem?
//
// ViewController.swift
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var WebView: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
let url = URL(string: "http://www.apple.com")
WebView.loadRequest(URLRequest(url: url!))
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}