解决编译时出现的警告:format string is not a string literal (potentially insecure)

时间:2016-06-21 23:58:50   收藏:0   阅读:3433

 NSLog([NSString stringWithFormat:@"%@/%@B.jpg", createDir, uuid]);//这是我的写法

应该写成

 NSString *str = [NSString stringWithFormat:@"%@/%@B.jpg", createDir, uuid];

  NSLog(@"%@",str);

原文:http://www.cnblogs.com/liuting-1204/p/5605402.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!