美文网首页
忽略NSLog

忽略NSLog

作者: 骑着蜗牛做开发 | 来源:发表于2017-05-04 11:39 被阅读0次

1.打包上传时,在 .pch 文件将以下代码复制 到里边 。

#ifdef DEBUG_MODE

#define DLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )

#else

#define DLog( s, ... )

#endif

#ifndef PCH_pch

#define PCH_pch

相关文章

网友评论

      本文标题:忽略NSLog

      本文链接:https://www.haomeiwen.com/subject/gteaettx.html