美文网首页
xcode8 真机测试 NSLog打印不显示

xcode8 真机测试 NSLog打印不显示

作者: 咋了爸爸 | 来源:发表于2016-12-27 13:28 被阅读11次

仅记录开发过程中遇到的问题

宏定义打印函数


#ifdef DEBUG
#define NSLog(format, ...) printf("[%s] %s [第%d行] %s\n", __TIME__, __FUNCTION__, __LINE__, [[NSString stringWithFormat:format, ## __VA_ARGS__] UTF8String]);
#else
#define NSLog(format, ...)
#endif


相关文章

网友评论

      本文标题: xcode8 真机测试 NSLog打印不显示

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