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);// 解决方案
上一篇:QT编译时出现警告 Warning: Class Node implements the interface QGraphicsItem but does not list it in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!


下一篇:SQLServer创建维护计划失败 错误c001f011