Say I had an array of strings...
[NSArray arrayWithObjects: @"red", @"blue", @"green", @"yellow", nil]
how would I achieve an output like this...?
red is a color
blue is a color
green is a color
yellow is a color
Thanks!
Say I had an array of strings...
[NSArray arrayWithObjects: @"red", @"blue", @"green", @"yellow", nil]
how would I achieve an output like this...?
red is a color
blue is a color
green is a color
yellow is a color
Thanks!
NSArray *colors = ...;
for (NSString *color in colors) {
NSLog(@"%@ is a color", color);
}