iphone - How to add NSDictionary of dictionaries to NSArray? -


i have dictionary of dictionaries. structure of main dictionary:

the content of dictionary(         {         mondayssales=     {         totalsale = "1234.99";     },         tusdaysales= {         totalsale = "1234.99";     },         wednesdaysale={         totalsale = "1234.99";     },         thursdaysale{         totalsale = "1234.99";     },         fridaysale{         totalsale = "1234.99";     } ) 

but want add each day day key array. example:

this 1 of entries of array:

        fridaysale{         totalsale = "1234.99";     } 

any of how can accomplish this?, i'll appreciate help.

you can loop through dictionary , add array. note dictionaries not sorted , won't end correct order weekdays

nsmutablearray *array = [@[] mutablecopy] (nsstring* key in dictionary) {     id value = [dictionary objectforkey:key];     [array addobject:value]; } 

Comments