I am having problem with using subArrayWithRange.
Basically, what I want to do is make subarray of 50 elements or less from mainArray for example if mainArray has 70 elements I want a sortedArray to have an array of first 50 elements in first index and another array of 20 elements in the last index of sortedArray
Hope I am clear what I want to do get.
anyway, my code is
for (int i=0; i<=ceilLoopCount; i++) {
[sortedArray insertObject:[testArray subarrayWithRange:NSMakeRange(0,50)] atIndex:i];
}
and the problem I am having is I only get the same 50 elements in all the array
Please help, Pondd