code snippet
[ObjectiveC] ARC 사용 여부 체크
WannaBeWize
2012. 6. 21. 18:47
반응형
__has_feature() 를 이용해서 ARC 사용 여부를 알 수 있다.
#if __has_feature(objc_arc)
NSLog(@"with ARC");
#else
NSLog(@"without ARC");
#endif
출처 : http://lists.apple.com/archives/xcode-users/2011/Aug/msg00252.html
반응형