Fork me on GitHub

OC-如何隐藏NSLog打印的自带信息

#ifdef DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr,"%s\n",[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(...)

#endif

posted @ 2016-03-22 21:50  极度恐慌_JG  阅读(319)  评论(0编辑  收藏  举报