1.Http和Https
升级到iOS9最出名的问题,原来的Http请求通过TLS1.2加密进行请求,所以所造成错误:
**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.**
解决方案Info.plist中加入允许任意请求设置:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<false/>
</dict>