NSSet 使用

NSSet *s = [NSSet set];
NSSet *s2 = [NSSet setWithObjective:@"a", @"b", @"c", nil];
NSString *s3 = [s3 anyObject];

NSMutableSet *s = [NSMutableSet set];
[s addObject:@"d"];
[s removeObject:@"d"];

  

原文地址:https://www.cnblogs.com/fangchun/p/4732668.html