Is there a specific Xcode compiler flag that gets set when compiling for iPad?
Posted
by Rei
on Stack Overflow
See other posts from Stack Overflow
or by Rei
Published on 2010-01-29T04:54:14Z
Indexed on
2010/06/09
12:32 UTC
Read the original article
Hit count: 330
ipad
|iphone-sdk-3.2
Is there a specific Xcode compiler flag that gets set when compiling for iPad?
I want to conditionally compile iPad vs iPhone/iPod Touch code for example:
#ifdef TARGET_IPAD
code for iPad
#else
code for iPhone
#endif
I know there is already TARGET_OS_IPHONE and TARGET_CPU_ARM in TargetConditionals.h but anything that easily and specifically targets iPad?
-Rei
© Stack Overflow or respective owner