Post not yet marked as solved
Post marked as unsolved with 1 replies, 1,583 views
Hi. I want to make an application on IOS.Opened the application - loaded a certain siteThe 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()
}
}