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

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -