I want to count the number of elements in NSArrayand perform some operation based on this. I know that it doesnβt matter, but I couldnβt understand it.
NSArray
Please give some suggestions.
It is very simple:
int arrayLength = array.count;
[yourNSArrayReference count]; It is simple: =)
[yourNSArrayReference count]
Very simple: -
[*your array name* count];
you just need to check
[number of arrays];