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.

Jorge Vega Sánchez
  • 7,430
  • 14
  • 55
  • 77

1 Answers1

18

Use subarrayWithRange: method of NSArray.

EmptyStack
  • 51,274
  • 23
  • 147
  • 178