I have an NSArray containing objects with a size property.
NSArray
size
How can I check if the NSArray has two objects with the same value
Use NSCountedSet. then add all your objects to the counted set, and use the countForObject: method to find out how often each object appears in your array.
countForObject
You can check this link also how-to-find-duplicate-values-in-arrays
Hope it helps you