IOS10.11 無(wú)法訪問(wèn)http的問(wèn)題解
Xcode Version 7.3.1 (7D1014)
IOS9 之后更新了htpps的訪問(wèn)限制,網(wǎng)上很多文章說(shuō) 往plist 文件中添加
NSAppTransportSecurity的字典
NSAppTransportSecurity
往上面字典中添加
NSallowsArbitaryLoads Boolean YES
NSAllowsArbitraryLoads
但是實(shí)際上操作添加了也沒(méi)用。困惑了半天。
最后發(fā)現(xiàn),現(xiàn)在的版本,按照以下操作是可以的。
添加NSAppTransportSecurity的字典
會(huì)自動(dòng)變成 AppTransportSecurity
再添加 allow Arbitary Loads Boolean YES
感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注