Xcode 警告信息处理:Format string is not a string literal (potentially insecure)

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

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

 

posted on 2014-01-13 16:41  王培  阅读(507)  评论(0编辑  收藏  举报

导航