ios - Find missing objects in NSSet -
I have 2 NSSet, say SetA and SetB
There are 3 objects in the set There are 4 objects in the set I have to find out which objects are missing in the set. In a way, I can do it again on every object in the set and find it in the set. Question - Is there a quick way to achieve this goal in which I do not have to walk again on the whole set. Sets are dynamically populated. Use NSMutableSet and Second set What is the difference for you? = @ [Object A, Obsubs, Objective];
SetB = @ [ObjectA, ObjectC, ObjectD, ObjectE];
minusSet to remove elements in
Comments
Post a Comment