7

I have a NSMutableArray with many objects. Can i extract a subarray from index range 'i' to 'j' directly? Yeah i know i can do a loop and use objectAtIndex:x and extract each object to a new.

I need to call a method which input is an array and want to use this array only with validate data.

1 Answer 1

18

Use subarrayWithRange: method of NSArray.

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

1 Comment

But I want a NSMutableArray.

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.