WebView 訪問網頁問題--ios9

問題描述:
    Application 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.

解決辦法:
    修改info.plist文件
    添加
    <key>NSAppTransportSecurity</key>
        <dict>
            <key>NSAllowsArbitraryLoads</key>
            <true/>
        </dict> app

添加後的界面
   
   it

相關文章
相關標籤/搜索