iOS9引入了新特性App Transport Security (ATS)。詳情:App Transport Security (ATS)html
App Transport Security (ATS)
新特性要求App內訪問的網絡使用HTTPS協議。對於HTTP ios
HTTPS
在Info.plist中添加NSAppTransportSecurity類型Dictionary。網絡
NSAppTransportSecurity
Dictionary
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads類型Boolean,值設爲YESapp
NSAllowsArbitraryLoads
Boolean
YES