问题描述:
控制台打印:
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.
原因:
在iOS9 beta1中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据,禁用了明码http请求。
解决办法:
修改项目的info.plist文件,添加如下图所示