重写NSLog() 写一个宏定义,使用新定义的打印
#ifdef DEBUG
define SLog(format, …) printf(“class: <%p %s:(%d) > method: %s \n%s\n”, self, [[[NSString stringWithUTF8String:FILE] lastPathComponent] UTF8String], LINE, PRETTY_FUNCTION, [[NSString stringWithFormat:(format), ##VA_ARGS] UTF8String] )
else
define SLog(format, …)
endif
Xcode 8 控制台打印json信息不完整解决
最新推荐文章于 2021-12-23 11:23:05 发布