The string with format indicates that a variable argument list (va_list) should be passed in as the argument. Formats are used to place variables into a string and the first variable in the list should be an NSString with the formats (%@, %f, %i, %x, etc.). In your case change it to:
Code:
NSString *string = [[NSString alloc] initWithFormat:@"%@", firstPrice.text];
Maybe you don't need a format:
Code:
NSString *string = [[NSString alloc] initWithString:firstPrice.text];
Or much more simple, and uses less memory:
Code:
NSString *string = firstPrice.text;
Basically you are getting the warning because the method is marked with __attribute__((format(__NSString__, 1, 2))), which makes the compiler know that the first argument should be a literal NSString (@""), and in your case it isn't.