I'm using home screen quick actions that's only supported in IOS9
.
Using the constant UIApplicationLaunchOptionsShortcutItemKey
will crash if used in IOS8
.
What is the correct way to check if quick actions is supported?
One way is to check for IOS9
through systemVersion but I'm hoping there is a better way.
[[UIDevice currentDevice] systemVersion]
In objective C you can check to see if a class exists. Say something like
if([UIApplicationShortcutItem class]){
//Handle shortcut launch
}