What is this code supposed to do? -[NSMutableString appendFormat:]
takes a format string like @"The %@ says %@"
and “fills in the blanks” with the rest of the arguments.
Some of the more-rarely-used format specifiers are dangerous, in that they can reveal information from your program or cause it to crash (called an uncontrolled format string attack).
Because of this (and because format strings are intended to assemble information from variables), you always want the format string itself to be a literal string, not from a variable or array.
So, you can use appendFormat:
like this:
for (int i=0; i<feed.count; i++) {
[html appendFormat: @"%@", [self.itemName objectAtIndex:i]]; }
Or, you can just use appendString:
instead:
for (int i=0; i<feed.count; i++) {
[html appendString:[self.itemName objectAtIndex:i]]; }