IPhone, check for constant

How can you check if a constant is set at runtime? For example, UIApplicationDidEnterBackgroundNotification is available in iOS 4, but when launched on iOS 3 it will go through an error if you try to use it.

+6
iphone extern
source share
1 answer

You should probably look at this other question , which, in my opinion, also answers your questions. if (&UIApplicationWillEnterForegroundNotification != NULL) should be dynamic link safe and tell you if a constant exists.

+12
source share

All Articles