不久前,苹果宣布请求要为https的安全连接

于是,老的程序就报错:


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.


客户端可以在Infolist中做修改,或者升级服务器

找到程序的infoList文件,选择open as -> source code  添加如下代码:就OK 了!


 <key>NSAppTransportSecurity</key>

    <dict>

        <key>NSAllowsArbitraryLoads</key>

        <true/>

    </dict>