3 ms·
You can use: if ([object respondsToSelector:@selector(selectorYoureCalling:)]) { //it Does! } To check if the iOS version your app is installed on has the met
by kenrikm 13y ago
You can use:
if ([object respondsToSelector:@selector(selectorYoureCalling:)]) { //it Does! }
To check if the iOS version your app is installed on has the method and then use it if it does. It's pretty easy to keep things backwards compatible as long as you add fallbacks for functionality that's not present it older versions.