I have NSMutable dictionary like this
[dict setObject:arrItems forKey:@"Added"];
where “arrItems” is an array, so my dictionary contains arrays.
Problem is how can I retrieve real objects from dictionary. not as array objects.
when I tried like this
[myArray addObject:[dict objectForKey:@"Added"]];
It’s added objects to myArray as complete “arrItems” array. I want to add objects of arrItems to myArray.
Please give me a help
You need
[myArray addObjectsFromArray:[dict objectForKey:@"Added"]]I recommend you learn to use the documentation, as this is clearly documented in the NSArray documentation.