iOS開發最經常使用的資料

iOS 9 採用http通信須要增長的plist字段

使用2次
html

在Info.plist中添加NSAppTransportSecurity類型Dictionary。
在NSAppTransportSecurity下添加NSAllowsArbitraryLoads類型Boolean,值設爲YES


在plist源碼裏面加入這個也是同樣的,複製粘貼更方便spa


  <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>



使用pch預編譯宏命令code




使用全局constant常量
htm

相關文章
相關標籤/搜索