Warning: Format string is not a string literal (potentially
insecure)
[objc] view plaincopy
- NSString * str = nil;
- str = [NSString stringWithFormat:@"---%d---", 18] ;
- NSLog(str);
解决1:
[objc] view plaincopy
- NSLog(str,nil);
解决2:
[objc] view plaincopy
- NSLog(@"%@", str);
Format string is not a string literal (potentially
insecure)
时间: 2024-10-08 15:58:06