设置http访问:
在Info.plist中添加NSAppTransportSecurity类型Dictionary。
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES。
访问白名单:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>sinaweibo</string>
<string>weibosdk</string>
<string>mqq</string>
<string>mqqapi</string>
<string>mqqopensdkapiV2</string>
<string>mqzoneopensdkapi19</string>
<string>aliminipayauth</string>
<string>alipay</string>
<string>wechat</string>
<string>weixin</string>
</array>