/ Published in: Objective C
Just a simple loop around an NSMutableArray, but also removing an item if need be.
Expand |
Embed | Plain Text
SomeObjectClass *item; for (item in originalArrayOfItems) { if ([item shouldBeDiscarded]) [discardedItems addObject:item]; } [originalArrayOfItems removeObjectsInArray:discardedItems];
You need to login to post a comment.
