【问题标题】:After I updated to Xcode7, my apps can't connect to specific address更新到 Xcode7 后,我的应用程序无法连接到特定地址
【发布时间】:2016-01-08 07:23:44
【问题描述】:

在我的一些应用程序中,我使用NSURL 连接到特定地址;在我升级到 Xcode 7 后它不起作用。

我能做什么?

【问题讨论】:

    标签: ios cocoa-touch network-programming ios9 nsurl


    【解决方案1】:

    从 iOS 9 开始,您必须在 .plist 文件中的 NSAppTransportSecurity 字典下将 NSAllowsArbitraryLoads 键设置为 YES。希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-06-19
      • 2015-11-27
      • 1970-01-01
      • 2019-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多