I get the warning "Format not a string literal and no format arguments" at NSLog -- how can I correc
- by dsobol
Hello,
I get the warning "Format not a string literal and no format arguments" on the NSLog call in the following block:
(void) alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
NSLog([NSString stringWithFormat:@"%d", buttonIndex]);
}
I have read in another post here that this error message indicates an insecure use of NSLog. Could someone point me in the direction of a properly formatted string for this?
Thanks for any and all assistance!
Regards,
Steve O'Sullivan