I want to define different parameter according to different device, but I got a compiling mistake as below:
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
#if IS_IPAD //invalid token at start of a preprocessor expression
#define defaultHeight 475
#else
#define defaultHeight 175
#endif
I want to know the right grammar for my purpose, thanks!