Hello friends I want to store NSMutableAray's in NSMutableAray and want to retrieve it.I'm able to store it but could not access it. my code is below:
NSMutableArray *muteArray;
NSMutableArray *muteArray_Master;
NSMutableArray *mutArrar_Level1;
NSArray *Children = [dictionary objectForKey:@"Children"];
if (Children.count > 0) {
muteArray = [NSMutableArray arrayWithArray:Children];
}
muteArray_Master= [[NSMutableArray alloc] init];
mutArrar_Level1= [[NSMutableArray alloc] init];
[muteArray_Master addObject:muteArray]; // muteArray_Master array added one object successfully
i = [muteArray_Master count]; // Here I have i=1
mutArrar_Level1 = [NSMutableArray arrayWithArray:[muteArray_Master objectAtIndex:i-1]]; // But here mutArrar_Level1 not producing correct data.still it is with 0 objects
So my requirement is to store more than one NSMutableArray's in NSMutableArray and access all in another.
Thanks Deepak R