How to know at r开发者_开发技巧untime how many array elements are there in NSMutableArray?
NSArray
(NSMutableArray
is a subclass of NSArray
) has a count
method.
Example:
NSUInteger arrayLength = [myMutableArray count];
By reading the documentation for the class you are interested in.
精彩评论