Very simple question - how might I iterate through a NSMutableArray and do things for each item?
开发者_Python百科Much like the for loop in other langs:
foreach(array)
{
    dosomething();
}
If you want to call a method in each one, use
[array makeObjectsPerformSelector:@selector(eatFish)];
or if you want to pass an argument,
[array makeObjectsPerformSelector:@selector(eat:) withObject:myFishObject];
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论