How can I do that programatically?
I am told that this is the way to do it but the NSSet
has a different order.
NSSet *set = [NSSet setWithArray:theArray];
Any idea?
Thanks in advance.
If you want order, you'll have to use an NSOrderedSet.
NSOrderedSet *set = [NSOrderedSet orderedSetWithArray:theArray];
If you care about the order, you probably do not want to use an NSSet.
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