How to remove only one instance of an object from an NSMutableArray?

Viewed 1731

The Apple documentation says that the - (void)removeObject:(id)anObject method removes all occurrences of the given object from an NSMutableArray.

Is there a way to remove only one occurrence of the object from the array?

3 Answers
Related