Reputation: 10563
How to know at runtime how many array elements are there in NSMutableArray?
Upvotes: 12
Views: 19188
Reputation: 163228
NSArray
(NSMutableArray
is a subclass of NSArray
) has a count
method.
Example:
NSUInteger arrayLength = [myMutableArray count];
Upvotes: 29
Reputation: 44053
By reading the documentation for the class you are interested in.
Upvotes: -22