Is there one preprocessor token that can be used to detect any iPhone device or simulator during build? I am currently using:
#ifdef __IPHONE_OS_VERSION_MIN_REQUIRED
Is this a recommended approach or is there a better way? I would prefer the macro to be inline, i.e. Defined by the compiler, not the SDK header file that I have to include.
I'm not worried about distinguishing between versions of the iPhone OS right now, but if there is an Apple documentation page that lists all the relevant macros, and when they are not defined, I would rate the link to it as my search is still inactive.
Thanks!
preprocessor iphone
Richard Viney
source share