Xcode7 ios9不能用http请求

Xcode7 使用NSURLSession发送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.

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
   </dict>

猜你喜欢

转载自peng13123.iteye.com/blog/2244358