在编译iPad时是否有一个特定的Xcode编译器标志?
我想有条件地编译iPad与iPhone/iPod Touch代码,例如:
#ifdef TARGET_IPAD
code for iPad
#else
code for iPhone
#endif
Run Code Online (Sandbox Code Playgroud)
我知道在TargetConditionals.h中已经有TARGET_OS_IPHONE和TARGET_CPU_ARM,但是任何容易且专门针对iPad的东西?
-Rei