'Use'에 해당되는 글 1건

  1. 2010.06.24 Do not use NSLog in Release configuration
아이폰어플개발정보2010. 6. 24. 11:37
Do not use NSLog in Release configuration

by alex 11. 5월 2009 11:59
//You need o put this code into *_Prefix.pch

#ifdef DEBUG

#define DLog(...) NSLog(__VA_ARGS__)

#else

#define DLog(...) /* */

#endif

#define ALog(...) NSLog(__VA_ARGS__)

 
//In build options you need to add -DDEBUG to the Other C Flags for "Debug" configuration

//Note -- this options appears only for Device *.* configuration

//Last step -- replace NSLog with DLog enywhere you want to hide NSLog output on release build



출처 : http://blog.naver.com/PostView.nhn?blogId=amoros21&logNo=140107111242
Posted by 오늘마감

댓글을 달아 주세요