What is the best way to search for the index of object in multidimensional array. I tried to do it with indexOfObjectPassingTest:^BOOL(id object, NSUInteger index, BOOL *stop), but it seems that it takes two nested block like this. Is there any easier and efficient way to do this. Wandering if there is some efficient algorithm or the apple provided better method for this. How can this be achieved?
I think there's nothing utterly wrong with nesting arrays etc.! Did you take a look at Index Paths (And NSIndexPath class reference)?
You probably still have to code a little bit to get things done, but the methods of NSIndexPath will help you!