1.Http和Https
升級(jí)到iOS9最出名的問(wèn)題,原來(lái)的Http請(qǐng)求通過(guò)TLS1.2加密進(jìn)行請(qǐng)求购公,所以所造成錯(cuò)誤:
**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中加入允許任意請(qǐng)求設(shè)置:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<false/>
</dict>