Xcode7以后访问http加密
Xcode7
在Info.plist中add Row添加NSAppTransportSecurity类型Dictionary。
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
*Xcode7.1
在Xcode7.1中苹果更改了这项设定的名称
在App Transport Security Settings下添加Allows Arbitrary Loads类型Boolean,值设为YES

浙公网安备 33010602011771号