iOS9 NSURL不能工作的解决方法

Xcode7/iOS9 上, 原先可以正常使用的 NSURL获取 http资源不能工作了, 在控制台上会打印 “Application Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file”。  解决的方法是修改Info.plist文件,加入如下Key/Value,  于是一切都恢复了。 



你可能感兴趣的:(NSURL,Xcode7,IOS9)