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.
在iOS9 beta1中,蘋(píng)果將原h(huán)ttp協(xié)議改成了https協(xié)議,使用 TLS1.2 SSL加密請(qǐng)求數(shù)據(jù)。
解決辦法:在info.plist中添加
NSAppTransportSecurity
NSAllowsArbitraryLoads ? ? ? ?