#define resolves at compile time, i.e. on your computer
Obviously, you cannot make them conditional as you want. I recommend creating a static variable and setting them in the +(void)initialise method of your class.
And for the condition, use something like
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { // iPad } else { // iPhone or iPod touch. }
So it will be
static NSInteger foo; @implementation bar +(void)initialise{ if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
source share