出现错误提示:
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file
解决方法:
因为ios9.0 以上强制使用了https协议, 需要在info文件中添加如下字段就可以了.
NSAppTransportSecurity,类型: Dictionary
NSAllowsArbitraryLoads ,类型: Boolean,设置为YES。