We can remove multiple elements from NSMutableArray
by using removeObjectsInArray:
function. Does NSMutableSet
have any similar function?
You can use minusSet:
method to remove multiple elements from your mutable set, like this:
NSMutableSet *mySet = ...
[mySet minusSet:[NSSet setWithArray:myArray]];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With