34,333
edits
Changes
no edit summary
The number of objects in an array (referred to as ''elements'') can be identified using the ''count'' instance method of the NSArray class:
<pre> NSArray *myColors;
myColors = [NSArray arrayWithObjects: @"Red", @"Green", @"Blue", @"Yellow", nil];
NSLog (@"Number of elements in array = %ilu", [myColors count]);
</pre>