發(fā)送網(wǎng)絡(luò)請求錯誤
Application Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure
解決方法
根據(jù)錯誤提示缘滥,需要配置info.plist文件:
或者以sourceCode形式打開info.plist文件,在其中加入如下代碼:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowArbitrary</key>
<true/>
</dict>