Reputation: 4887
[arrayName containsObject:myObject]
Is there any way to find the index where myObject exists in arrayName?
Upvotes: 0
Views: 2120
Reputation: 56390
[arrayName indexOfObject:myObject]
Documented here along with a lots of other similar variants that could be useful as well.
Upvotes: 4