Format string is not a string literal (potentially insecure)
时间:2014-06-07 06:52:53
收藏:0
阅读:263
Warning: Format string is not a string literal (potentially insecure)
- NSString * str = nil;
- str = [NSString stringWithFormat:@"---%d---", 18] ;
- NSLog(str);
解决1:
- NSLog(str,nil);
解决2:
- NSLog(@"%@", str);
Format string is not a string literal (potentially insecure),布布扣,bubuko.com
评论(0)