I upgraded my Xcode to Version 4.5.1 and suddenly previous app development had ‘potentially insecure’ during build.
it generally applies to declaring this type of construct:
NSString *userChoice = [NSString stringWithFormat:label1a.text]; //Warning at pulling string from label1a.text
[usrAnswer setObject:userChoice forKey:@"1"];
is this a serious warning? How do i rectify this?
You are not using a format string. Just do this:
I see a lot of people create strings with stringWithFormat:. Only use that when you are actually creating a string with format specifiers.