[英]'setNewsstandIconImage' is only available on iOS 9.0 or newer
I see the strange compile error: 我看到奇怪的编译错误:
'setNewsstandIconImage' is only available on iOS 9.0 or newer 'setNewsstandIconImage'仅在iOS 9.0或更高版本上可用
But this method was available in ios 7 and 8 on Xcode 6.4. 但是此方法在Xcode 6.4的ios 7和8中可用。 How to fix it? 如何解决?
I found a hack how to do this in Swift 2.2: 我发现了一个如何在Swift 2.2中做到这一点的技巧:
UIApplication.sharedApplication().performSelector(Selector("setNewsstandIconImage:"), withObject: image)
And you will have warning instead compile error. 您将得到警告,而不是编译错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.