升級Xcode 7.0發現網絡訪問失敗
輸出錯誤信息
The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.
解決方法爲:
第一步:在Info.plist中添加NSAppTransportSecurity類型Dictionary
(具體做法爲add row然後直接鍵入NSAppTransportSecurity)
第二步:在NSAppTransportSecurity下添加NSAllowsArbitraryLoads類型Boolean,值設爲YES
就ok了