Hi,
I have finished implementation of an iPhone app, and now is trying to finetune the performance. Throughout my code, I have put a LOT of NSLog statements for debug.
I wonder is there any way for me to DISABLE those NSLog statements (say, by setting a compilation flag) for distribution. I know the NSLog statements will eventually be ignored when run on device, but I don't even want the arguments on NSLog statements to be evaluated.
I know I may comment all the statements, but most of NSLog are useful for future debugging. I don't want to remove & restore them again and again.
Any advice will be greatly appreciated.
Thanks.
have a nice day
walty
I have finished implementation of an iPhone app, and now is trying to finetune the performance. Throughout my code, I have put a LOT of NSLog statements for debug.
I wonder is there any way for me to DISABLE those NSLog statements (say, by setting a compilation flag) for distribution. I know the NSLog statements will eventually be ignored when run on device, but I don't even want the arguments on NSLog statements to be evaluated.
I know I may comment all the statements, but most of NSLog are useful for future debugging. I don't want to remove & restore them again and again.
Any advice will be greatly appreciated.
Thanks.
have a nice day
walty