Finding out the Number of Elements in an Array

suggest change
NSArray *myColors = [NSArray arrayWithObjects: @"Red", @"Green", @"Blue", @"Yellow", nil];
NSLog(@"Number of elements in array = %lu", (unsigned long)[myColors count]);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents