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