Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subarray from NSMutableArray

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.

like image 700
Jorge Vega Sánchez Avatar asked Dec 15 '11 12:12

Jorge Vega Sánchez


1 Answers

Use subarrayWithRange: method of NSArray.

like image 99
EmptyStack Avatar answered Sep 28 '22 01:09

EmptyStack