【问题标题】:How to use AFNetworking 2.0 in iOS5?如何在 iOS5 中使用 AFNetworking 2.0?
【发布时间】:2015-03-04 08:01:25
【问题描述】:

我正在开发一个基于 iOS5 的项目。我想通过 cocoapods 使用 AFNetworking 2.0。但是需要“iOS6+”。我可以在 iOS5 时使用 AFNetworking 1.x 而在 iOS6+ 时使用 2.0 吗?

谢谢

【问题讨论】:

  • 也许看看stackoverflow.com/questions/2414807/…,因为这个问题也询问使用不同版本的框架。虽然我不得不问为什么不直接使用 AFNetworking 1.x 或放弃对 iOS 5 的支持,因为现在没有那么多人使用它。
  • 如果你的App和支付宝、微信等不一样,你应该想想为什么你的App还需要支持iOS 5。

标签: ios ios5 afnetworking


【解决方案1】:

无法在 iOS 5 中使用 AFNetworking 2.0 来源:https://github.com/AFNetworking/AFNetworking#requirements

不再值得针对 iOS 5。我什至不再针对 iOS 6。您必须编写太多的兼容性代码才能使其正常工作。

【讨论】:

    【解决方案2】:

    Cocoapods 不直接支持,不推荐使用。

    检查Link

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-10-26
      • 2013-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多