Im trying to extract a NSString from a NSArray that is populated with strings, but keep getting "incompatible types in initialization".
I must be missing some kind of type-cast, but I cant find the syntax for doing this correctly. Any ideas?
Code:
NSArray *buttonNamesSecondRow = [NSArray arrayWithObjects:@"A", @"B", @"C", @"D", @"E", nil];
NSString *letter = buttonNamesSecondRow[2]; // Trying to get the "C"
}
I must be missing some kind of type-cast, but I cant find the syntax for doing this correctly. Any ideas?