iOS: Moving in and out of NSLogs
So, if you are a iPhone developer like me you must be using a lot of
NSLog
in your code, and at times you must have really wished for a way
to turn them all ON
and OFF
from single place.
Here is a easy way I do it.
Step 1: Create a SJLogger.h
and SJLogger.m
. In the SJLogger.h
add
this macro: