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

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

应该写成

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

  NSLog(@"%@",str);

posted @ 2016-06-21 23:20  柳仙慧子  阅读(11339)  评论(0编辑  收藏  举报