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以后需要写两句话加密一下防止数据不安全。

 

posted on 2015-12-29 11:48  奋斗的王布斯  阅读(195)  评论(0编辑  收藏  举报