ios應用去除IOS9的https

1.打開應用的info.plist ,右擊-》open as》source code 。

2.粘貼代碼 

<key>NSAppTransportSecurity</key>
<dict>
    <!--Connect to anything (this is probably BAD)-->
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

</dict>

</plist>


放到最後一個    </dict>上面;

然後運行代碼,IOS9上是否有數據。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章