IOS10.11 無(wú)法訪問http的問題解
IOS10.11 無(wú)法訪問http的問題解
Xcode? Version 7.3.1 (7D1014)
IOS9 之后更新了htpps的訪問限制菜秦,網(wǎng)上很多文章說(shuō) 往plist 文件中添加
NSAppTransportSecurity的字典
NSAppTransportSecurity
往上面字典中添加
NSallowsArbitaryLoads? Boolean?? YES
NSAllowsArbitraryLoads
但是實(shí)際上操作添加了也沒用。困惑了半天舶掖。
最后發(fā)現(xiàn)球昨,現(xiàn)在的版本,按照以下操作是可以的访锻。
添加NSAppTransportSecurity的字典
會(huì)自動(dòng)變成? AppTransportSecurity
再添加 allow Arbitary Loads? Boolean?? YES
感謝閱讀褪尝,希望能幫助到大家,謝謝大家對(duì)本站的支持期犬!