IOS应用发布NSLog的如何注释

#define IOS_DEBUG //发布时注释此行不输出log日志

#ifdef  IOS_DEBUG

#define NSLog(...) NSLog(__VA_ARGS__)

#else

#define NSLog(...)

#endif

 

posted on 2014-08-07 18:10  助金  阅读(155)  评论(0)    收藏  举报