简体   繁体   中英

'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

But this method was available in ios 7 and 8 on Xcode 6.4. How to fix it?

I found a hack how to do this in Swift 2.2:

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

And you will have warning instead compile error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM