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.
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.
if (&UIApplicationWillEnterForegroundNotification != NULL)