If you are writing a universal application, you cannot perform a compile-time check because the compiler generates one executable file for the iPhone and iPad. If you have separate applications for iPhone and iPad (with a common code base), why not just #define ISIPAD accordingly. Otherwise, you must perform a run-time check.
, , , , , .