xcode 9 UIWebView加載http 報錯

xcode9 默認只能加載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.

解決辦法
右擊 Infomation Property List —add ROW
在這裏插入圖片描述
然後添加一個 App Transport Security Settings
在這裏插入圖片描述

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