don*_*ile 6 xcode objective-c conditional-compilation ios xcode4
例:
#ifdef FREE_VERSION
tf.text = @"Free";
NSLog(@"FREE VERSION");
#else
tf.text = @"Paid";
NSLog(@"PAID VERSION");
#endif
Run Code Online (Sandbox Code Playgroud)
第一部分在Xcode中看起来很好.
tf.text = @"Free";
NSLog(@"FREE VERSION");
Run Code Online (Sandbox Code Playgroud)
语法突出显示.但是,第二部分不是:
tf.text = @"付费";
NSLog(@"PAID VERSION");
有没有像"不要在条件cimpilation代码的#else部分中进行语法高亮"这样的设置?
| 归档时间: |
|
| 查看次数: |
555 次 |
| 最近记录: |