控制台打印:Application 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.
程序禁止了http明码的访问,系统认为不安全。可通过info.plist文件临时设置。下面给出设置的方法:
1. 在Info.plist中添加 App Transport Security Settings 类型 Dictionary ;
2. 在 App Transport Security Settings 下添加 Allow Arbitrary Loads 类型Boolean ,值设为 YES;
如图:
iOS开发中的错误整理,线程之间通信练习,加载图片的练习中出现的错误 -- Http请求错误
原文:http://www.cnblogs.com/gchlcc/p/5414549.html