我有以下预处理器代码来检测设备是 iPhone 还是 iPad,并且我想将 iPhone5 添加到其中:
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
#define POS_UI_CHEST ( (IS_IPAD) ? (ccp(72.0,831.0)) : (ccp(33.0,396.0)) )
#define POS_UI_ROUTE ( (IS_IPAD) ? (ccp(74.0,521.0)) : (ccp(36.0,240.0)) )
#define POS_UI_GUAGE ( (IS_IPAD) ? (ccp(384.0,70.0)) : (ccp(160.0,20.0)) )
#define POS_UI_BALL ( (IS_IPAD) ? (ccp(384.0,70.0)) : (ccp(160.0,20.0)) )
向每个条件添加第三个 ccp 的最简单方法是什么?
谢谢!