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

 

posted @ 2016-01-05 17:30  LiLM  阅读(142)  评论(0编辑  收藏  举报