Changes

Jump to: navigation, search

Working with Objective-C Array Objects

19 bytes added, 19:08, 23 April 2012
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>

Navigation menu