Cause: After iOS9, Apple changed the original HTTP protocol to the HTTPS protocol, so it cannot be get/post directly under the HTTP protocol.
Solution One:
Directly edit the Info.plist file under the project file, add the following code
<key>NSAppTransportSecurity</key> <dict> <key>nsallowsarbitraryloads</key >
<true/> </dict>
:
Solution Two:
A. Select Info.plist in Xcode and click the plus sign on the right side of the information property List
B. Write to App Transport Security Settings then enter, first click on the left to expand the arrow, then click on the right Plus, allow arbitrary Loads has been automatically generated, directly enter.
C. Need to change the default value to Yes
In fact, the effect is the same, open the Info.plist file, found that the text in the scenario one has been automatically added
< finish >
Http://www.cnblogs.com/36bian/p/5237138.html
Afnetworking Tip "The resource could is not being loaded because the APP Transport Security policy requires the use of a secure CO Nnection "solution