My code is as follows:
NSString *str1 = @"Name";
NSString *str2 = @"Age";
NSArray *array = [[NSArray alloc] initWithObjects: str1, str2 count:2];
However when I Build & Run I get an exception thrown which says: Expected ':' right before the 'c' in count
.
Why is this? I've tried inputting the ':' though I know that's syntactically incorrect and then Xcode asks me to close off with a ']' before count
.