I get the warning in the NSLog line
Format string is not a string literal(potentially insecure)
From the following code
NSMutableString *MarqueeMessage = [[NSMutableString alloc]init];
[MarqueeMessage appendString:@"Abc"];
NSString *immutableString = MarqueeMessage;
NSLog(immutableString);
May I ask why after I changed the line into the following code, the warning is gone?
NSLog(immutableString,nil);
See Question&Answers more detail:os