<key>NSAppTransportSecurity</key><dict> <key>NSAllowsArbitraryLoads</key> <true/></dict>@IBOutlet weak var vw: UIWebView!
vw.loadRequest(NSURLRequest(URL:NSURL(string: "http://www.baidu.com")!))
可以了.
原文:http://www.cnblogs.com/egai/p/5086994.html