Oh Danny Boy
Oh Danny Boy

Reputation: 4887

Objective-c: Finding index an object exists at

[arrayName containsObject:myObject]

Is there any way to find the index where myObject exists in arrayName?

Upvotes: 0

Views: 2120

Answers (1)

Daniel DiPaolo
Daniel DiPaolo

Reputation: 56390

[arrayName indexOfObject:myObject]

Documented here along with a lots of other similar variants that could be useful as well.

Upvotes: 4

Related Questions