我在NSLog线上得到了警告
Format string is not a string literal(potentially insecure)
从下面的代码
NSMutableString *MarqueeMessage = [[NSMutableString alloc]init];
[MarqueeMessage appendString:@"Abc"];
NSString *immutableString = MarqueeMessage;
NSLog(immutableString);
我可以问一下为什么在我把这行代码改成下面的代码后,警告就消失了吗?
NSLog(immutableString,nil);