Xcode中报错如下:
2015-12-31 22:59:56.720 Vege[7083:8115428] 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.
原因:Xcode7中禁用了http明文请求
解决:
1、使用https协议
2、在Info.plist 中添加配置如下
添加key NSAppTransportSecurity
类型 Dictionary(添加会自动转换为App Transport Security Settings)
在App Transport Security Settings 添加子项 NSAllowsArbitraryLoads 类型Boolean,值YES