Is it true that one should not use NSLog() on production code?
Preprocessor macros are indeed great for debugging. There’s nothing wrong with NSLog(), but it’s simple to define your own logging function with better functionality. Here’s the one I use, it includes the file name and line number to make it easier to track down log statements. #define DEBUG_MODE #ifdef DEBUG_MODE #define DebugLog( s, … ) … Read more