美文网首页
xcode 打印数据不完整,只打印了一半问题

xcode 打印数据不完整,只打印了一半问题

作者: iOS_Programmer | 来源:发表于2020-10-26 17:11 被阅读0次

创建一个宏 把这段代码粘上去 在使用的地方调用就可以了

#ifdef DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr, "%s:%zd\t%s\n", [[[NSString stringWithUTF8String: __FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat: FORMAT, ## __VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

#endif

相关文章

网友评论

      本文标题:xcode 打印数据不完整,只打印了一半问题

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