2

I am trying to find an item in a NSMutableArray from it's value, only to find its indexPath.

I have absolutely no idea of how to do this, as I am very new to programming in general.

Thanks!

2 Answers 2

3

Are you perhaps looking for - indexOfObject:? This method returns the index on which the object specified can be found in the NSArray (from which NSMutableArray inherits) on which the method is ran.

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

1 Comment

Yeah, something like that. But how do I find the object? All I got is its contents..
0

You probably need something like this or this

1 Comment

A top level RTFM (by linking to an object's doc's) is not helping here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.