Printing description of error:
Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSUnderlyingError=0x7fc2b0eaf740 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}, NSErrorFailingURLStringKey=http://cn.nie.io/php/ydig/wxtest_break.php, NSErrorFailingURLKey=http://cn.nie.io/php/ydig/wxtest_break.php, NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
plist中添加
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>