在info的plist文件中添加下面代码
(进入方法-info.plist-右键单击-Open AS->Source Code)
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
在info的plist文件中添加下面代码
(进入方法-info.plist-右键单击-Open AS->Source Code)
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>