I am trying to create a universal binary file that supports multitasking on iPhone 4 and can still work on iPad.
I know how to avoid compilation errors for different versions of iPhone IOS by checking if a class exists using NSClassFromString and "responseToSelector", but is there a way to check for constants like UIBackgroundTaskInvalid?
Of course, I can use #IFDEF, but I want to avoid this.
source
share