AFNetworking 提示"The resource could not be loaded because the App Transport Security policy requir...

原因:iOS9以后,苹果把原http协议改成了https协议,所以不能直接在http协议下GET/POST

直接编辑工程文件下的Info.plist文件,加入以下代码

NSAppTransportSecurity  
    
    NSAllowsArbitraryLoads
      
  

或者直接修改info.plist文件

info.png

你可能感兴趣的:(AFNetworking 提示"The resource could not be loaded because the App Transport Security policy requir...)