你好朋友我想将 NSMutableAray 存储在 NSMutableAray 中并想检索它。我可以存储它但无法访问它。我的代码如下:
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
所以我的要求是存储多个 NSMutableArrayNSMutableArray
并在另一个中访问。
谢谢迪帕克 R