【发布时间】:2012-06-07 10:39:17
【问题描述】:
在同一个文件中,我们要编写支持 ARC 和非 ARC 的代码。为此需要一些宏。
#ifdef ARC_ENABLED
NSLog(@" ARC enabled ");
#else
NSLog(@" ARC disabled ");
[self release];
#endif
如何实现这个宏,有什么可用的宏吗? 请告诉我。先谢谢支持 注意:ARC_ENABLED 只是我写的例子
【问题讨论】:
标签: ios objective-c cocoa xcode4