/ Published in: Objective C

Just a simple loop around an NSMutableArray, but also removing an item if need be.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SomeObjectClass *item; for (item in originalArrayOfItems) { if ([item shouldBeDiscarded]) [discardedItems addObject:item]; } [originalArrayOfItems removeObjectsInArray:discardedItems];
Comments
