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
NSArray *cleanedArray = [[NSSet setWithArray:yourArraywithDuplicatesObjects ] allObjects];
Use Sets this will remove all duplicates objects.Will return NSArrayNSCountedSet and use countForObject: method to find out how often each object appears how many times.
countForObject: