0
全部。 我有一個NSMutableArray,名字是dummyPerson。它的元素是NSMutableDictionary。像下面的代碼一樣。我想排除重複的screenName。如何從NSMutableDictionary中獲取uniq obj鍵
```
self.dummyPeople = [{screenName: "apple",tweet: "hi"},{screenName:"orange",tweet:"foo"},{screenName:"apple",tweet: "hoge"}];
// filteredByScreenName is procedure code.
[self.dummyPeople filteredByScreenName]
#=> return [{screenName:"apple",tweet:"hi"},{screenName:"orange",tweet:"foo"}];
```
你有什麼想法?提前致謝。
你可以使用NSMutableDictionary從screenName映射到tweet嗎? – nhahtdh
感謝評論這篇文章。是的,我可以。 – nobinobiru