原文:AFNetworking 提示"The resource could not be loaded because the App Transport Security policy requires the use of a secure connection" 解決辦法

原因:iOS 以后,蘋果把原http協議改成了https協議,所以不能直接在http協議下GET POST 解決方案之一: 直接編輯工程文件下的Info.plist文件,加入以下代碼 如圖所示: 解決方案之二: a.在Xcode里選中info.plist,點擊右邊的information Property List 后邊的加號 b.寫入App Transport Security Settings ...

2016-03-03 01:54 0 26331 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM