How can i get Original order of NSDictionary/NSMutableDictionary?

前端 未结 5 1828
[愿得一人]
[愿得一人] 2020-12-02 00:14

i have created NSMutableDictionary with 10 keys.Now i want to access NSMutableDictionary keys in a same order as it was added to NSMutableDictionary (using SetValue:* forKey

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 00:45

    NSMutableDictionary can't do that. Take a look at e.g. Matt Gallaghers OrderedDictionary.

提交回复
热议问题