【ios开发学习】【swift】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.


编辑 info.plist,加入如下设置:


        ....
    NSAppTransportSecurity
    
        NSAllowsArbitraryLoads
        
    

 

切记不要添加到test文件夹下的info.plist文件中,很多同仁放过该错误。


你可能感兴趣的:([03]iOS)