【问题标题】:'setNewsstandIconImage' is only available on iOS 9.0 or newer'setNewsstandIconImage' 仅适用于 iOS 9.0 或更高版本
【发布时间】:2015-11-21 15:19:09
【问题描述】:

我看到奇怪的编译错误:

'setNewsstandIconImage' 仅适用于 iOS 9.0 或更高版本

但这种方法在 Xcode 6.4 上的 ios 7 和 8 中可用。如何解决?

【问题讨论】:

    标签: ios swift2 newsstand-kit xcode7.1


    【解决方案1】:

    我发现了如何在 Swift 2.2 中执行此操作:

    UIApplication.sharedApplication().performSelector(Selector("setNewsstandIconImage:"), withObject: image)
    

    你会收到警告而不是编译错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-10
      • 2018-07-04
      • 2020-08-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多