Application Transport Security has blocked a clear

Xcode7 使用NSURLSession發送HTTP請求報錯spa

由於須要https的支持code

修改添加 info.plist文件以下it

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>
相關文章
相關標籤/搜索