【发布时间】:2011-04-15 15:36:09
【问题描述】:
我在头文件中声明了一些常量,这些常量需要根据它是 iPad 还是 iPhone 应用程序而有所不同。我该怎么做?
即
#ifdef ISIPAD
static NSString myconst = @"ipad!";
#else
static NSString myconst = @"iphone!";
#endif
【问题讨论】:
-
谢谢,虽然标记的答案不是我想要的
标签: objective-c xcode ipad c-preprocessor