'2013/04/22'에 해당되는 글 2건

  1. 2013.04.22 Debug 모드에서만 NSLog 로깅하기
  2. 2013.04.22 Default.png 설정

아래 화면과 같이 -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 :

Default.png 설정

2013. 4. 22. 21:06 from iPhone Dev.

디바이스 따른 Default.png 파일명 및 해상도 설정 방법


 - Default.png (320x480)


 - Default@2x (640x960)


 - Default-568h@2x (640x1136)


Posted by NuBiFoRM :