解决编译时出现的警告: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)