1

Just wanted to know if there is any method in NSMutableArray (or NSArray) which lets you get the index of a specific object? for example if have an array which has a b c d e f g h i objects how can I get the index for like c or e or any other object?

2 Answers 2

4

NSArray has methods along the lines of indexOfObject: that will give you the index of an object. It all depends on what you're trying to accomplish. Read through the documentation at the links provided and you should find what you're looking for.

Sign up to request clarification or add additional context in comments.

Comments

3

Have you already tried with indexOfObject? Just look for it in the docs and you'll find it ;-)

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.