NSLog()를 사용한곳 앱 release 빌드시에 숨기기.
DEBUG=1 설정이나,
#ifndef ~ #endif 설정이나,
NSLog() 매크로 만들 필요 없이...
Project / Supporting Files / 앱이름-Prefix.pch 파일에.. 아래 코드 추가하면 됨.
#ifndef __OPTIMIZE__
# define NSLog(...) NSLog(__VA_ARGS__)
#else
# define NSLog(...) {}
#endif
'ios' 카테고리의 다른 글
UITableViewController Diagram (0) | 2013.05.21 |
---|---|
UIViewControllerLifecycle (0) | 2013.05.21 |
UIImage resize (0) | 2013.05.07 |
iphone - storyboard delegate prepareForSegue (0) | 2013.05.03 |
storyboard initWithNibName NSInternalInconsistencyException (0) | 2013.05.03 |