适配iOS9,网络提示App 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.list里面加入下面这段代码,具体步骤:

1、右键打开info.list-》选择openAs-》source code,如下图:

适配iOS9,网络提示App 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.解决方案_第1张图片
适配iOS9,网络提示App 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.解决方案_第2张图片

2、打开之后就是这个样子的,加入下面的代码:

适配iOS9,网络提示App 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.解决方案_第3张图片

具体的代码:

NSAppTransportSecurity

NSAllowsArbitraryLoads







你可能感兴趣的:(适配iOS9,网络提示App 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.解决方案)