简体   繁体   English

'setNewsstandIconImage'仅在iOS 9.0或更高版本上可用

[英]'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.

相关问题 centerXAnchor仅在iOS 9.0或更高版本中可用? - centerXAnchor is only available in iOS 9.0 or newer? “ NSBatchDeleteRequest”仅在iOS 9.0或更高版本上可用 - 'NSBatchDeleteRequest' is only available on iOS 9.0 or newer Xcode UI测试:lldb错误“仅适用于iOS 9.0或更高版本” - Xcode UI Testing: lldb error “only available on iOS 9.0 or newer” “ SFSafariViewController”仅在iOS 9.0或更高版本(React Native Build)上可用 - 'SFSafariViewController' is only available on iOS 9.0 or newer (React Native Build) XCUIApplication仅适用于iOS 9.0或更高版本的swift3 - XCUIApplication is only available on iOS 9.0 or newer, swift3 Flutter:AVCapturePhotoOutput' 仅适用于 iOS 10.0 或更高版本 - Flutter: AVCapturePhotoOutput' is only available on iOS 10.0 or newer 'LABiometryType'仅适用于iOS 11.0.1或更高版本 - 'LABiometryType' is only available on iOS 11.0.1 or newer “ AppDelegate”仅在iOS 10.0或更高版本上可用 - 'AppDelegate' is only available on iOS 10.0 or newer Searchcontroller仅在iOS 11或更高版本上可用 - Searchcontroller only available on iOS 11 or newer 'NSPersistentContainer'仅适用于iOS 10.0或更高版本 - 'NSPersistentContainer' is only available on iOS 10.0 or newer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM