"Do not use NSLog in Release configuration"

Mon 11 May 2009

//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