Creating Arrays
suggest changeCreating immutable arrays:
NSArray *myColors = [NSArray arrayWithObjects: @"Red", @"Green", @"Blue", @"Yellow", nil];
// Using the array literal syntax:
NSArray *myColors = @[@"Red", @"Green", @"Blue", @"Yellow"];
For mutable arrays, see NSMutableArray.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents