Finding out the Number of Elements in an Array
suggest changeNSArray *myColors = [NSArray arrayWithObjects: @"Red", @"Green", @"Blue", @"Yellow", nil];
NSLog(@"Number of elements in array = %lu", (unsigned long)[myColors count]);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents