아래 화면과 같이 -DDEBUG=1 항목을 추가



프로젝트명-Prefix.pch 파일에 다음을 추가


#ifdef DEBUG

    #define NSLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )

#else

    #define NSLog( s, ... )

#endif


출처 : 아이군의 블로그

http://theeye.pe.kr/entry/upgrade-NSLog-only-working-debug-mode


'iPhone Dev.' 카테고리의 다른 글

NSURLConnection 사용하기  (0) 2013.04.25
Default.png 설정  (0) 2013.04.22
IB없는 Window-based Application 프로젝트 시작하기  (0) 2011.05.11
NSArray를 plist 파일로 저장  (0) 2011.05.04
C# Push Notification Provider 구현  (8) 2010.07.31
Posted by NuBiFoRM :