// 打印日志  debug
#ifdef DEBUG // 调试状态, 打开LOG功能 
#define APPLog( s, ... ) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(s), ##__VA_ARGS__] UTF8String] )

#else // 发布状态, 关闭LOG功能 
#define APPLog(...)

#endif

 而且还进行了utf8的解码,可以直接看到后台传过来的汉字。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-11-12
  • 2021-12-31
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案