Iterate Dictionary with dictionary data and add it to an array in swift

后端 未结 2 1710
执念已碎
执念已碎 2020-12-20 00:43

I have a dictionary with multiple dictionary data :

{
    1455201094707 =     {
    };
    1455201116404 =     {
    }: 
    1455201287530 =     {
    };
}
         


        
2条回答
  •  抹茶落季
    2020-12-20 01:12

    1. Get all keys from the dictionary, for this NSDictionary has property allKeys.

    2. Loop all keys, and add object for the key to the array.

    3. Before the all steps above, read documentation!

    Good luck!

提交回复
热议问题