Maintaining the order while iterating a NSDictionary

前端 未结 3 1897
春和景丽
春和景丽 2021-01-28 01:49

I have a NSDictionary which im iterating and Im saving the datas to core data as follows,

NSDictionary *details = [valueDict objectForKey:@\"shipment_master\"];
         


        
3条回答
  •  孤城傲影
    2021-01-28 02:17

    There is no order in NSMutableDictionary If you want to use it you may use it by storing keys into an NSArray then iterate it and fetch its relevant values you want to use. Hope it works for you :)

提交回复
热议问题