import UIKit
class ViewController: UIViewController {
@IBOutlet weak var wc: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
let url = NSURL(string: "http://baidu.com")
wc.loadRequest(NSURLRequest(URL: url!))
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
写完提示不好使,一大堆话,反正就是说iOS9以后需要写两句话加密一下防止数据不安全。