I have created an additional iPad target for what was originally an iphone app.
From the Apple docs: "In nearly all cases, you will want to define a new view controller class to manage the iPad version of your application interface, especially if that interface is at all different from your iPhone interface. You can use conditional compilation to coordinate the creation of the different view controllers."
But they don't give any example or detail on what conditional compilation is. Can anyone give an example? And where would I do this?
EDIT: I have tried defining the following C Flags in the iPad target: -D USE_IPAD, -DUSE_IPAD. Either way, this code always results in IPHONE getting logged:
#ifdef USE_IPAD
NSLog(@"IPAD");
#else
NSLog(@"IPHONE");
#endif
What am I missing?