1.打開應用的info.plist ,右擊-》open as》source code 。
2.粘貼代碼
<key>NSAppTransportSecurity</key>
<dict>
<!--Connect to anything (this is probably BAD)-->
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>
放到最後一個 </dict>上面;
然後運行代碼,IOS9上是否有數據。