首页 > 其他 > 详细

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

时间:2014-01-16 08:38:28      阅读:596      评论:0      收藏:0      [点我收藏+]

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

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

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

原文:http://www.cnblogs.com/wangpei/p/3517681.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!