objective c - iPhone - How to build a list of unique items -
I want an array that contains only unique items, I know that I can do this with items with a nsstried item Add and then get all the keys. This will ensure that NSArray only includes unique items, but I think it will be redundant and believe that there should be an easy way to do this, but one can not get one.
NSArray * uniqueArray = [[NSSet Set Vitrere: Original Array] Subject];
Specification isEqual: based on the method.
Comments
Post a Comment