#define NEED_OUTPUT_LOG 1
#if NEED_OUTPUT_LOG
#define DDLog(xx, ...) NSLog(@"%s(%d): " xx, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define DDLog(xx, ...)
#endif
打印出类名、方法名及所在的行。
iOS自定义NSLog来打印自己想要的东西
最新推荐文章于 2020-12-30 12:45:39 发布