升级了Xcode7.0以后发现图片显示不出来了
出现下面的错误!
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure
后来看了一下文档原来是苹果官方默认https协议,需要开启 Allow Arbitrary Loads ,具体设置方法是在 info.plist里点击“+”添加 App Transport Security Settings
将Allow Arbitrary Loads(允许任意加载) 选项设置为YES
具体如图
具体请看:https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP40016198-DontLinkElementID_13