'setNewsstandIconImage' is only available on iOS 9.0 or newer

268 Views Asked by At

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?

1

There are 1 best solutions below

0
On BEST ANSWER

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.