IOS9 request https problems-record, ios9 request https record
When iOS9 started, Apple changed all HTTP to HTTPS, so the network request failed. solution:
1. Change to HTTP:
Add a Key: NSAppTransportSecurity (Dictionary type) to the info. plist file, and then add a Key: NSAllowsArbitraryLoads (Boolean Type) to it. The attribute value is set to YES. For example:
2. Add a whitelist
(This is mainly for running program printing'-CanOpenURL: failed for URL: "XXX"-error: "This app is not allowed to query for scheme XXX"'Problem) (take umeng as an example)
Open the info. plist file in the Source Code method, add Code similar to the following in it (General official website can find the solution, http://dev.umeng.com/social/ios/ios9)
<key>LSApplicationQueriesSchemes</key> <array> <string>wechat</string> <string>weixin</string> <string>sinaweibohd</string> <string>sinaweibo</string> <string>sinaweibosso</string> <string>weibosdk</string> <string>weibosdk2.5</string> </array>
3. Run the program and the print information will change'-CanOpenURL: failed for URL: "XXX"-error: "null"', This print seems to be unable to be eliminated (I have not found a solution, but it will not appear in the real machine)
This is OK.
Add link for iOS9 adaptation issues: http://www.cocoachina.com/ios/20150702/12384.html