转自:http://www.oschina.net/question/54100_33881

NSObject *obj = @"A string or other object.";
NSLog([NSString stringWithFormat:@"%@",obj]);// 有警告
NSLog([NSString stringWithFormat:@"%@",obj],nil);// 解决方案

 

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2021-10-06
  • 2021-07-09
  • 2022-12-23
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-06-06
  • 2022-12-23
  • 2022-02-15
相关资源
相似解决方案