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"];
NSSet 使用
原文:http://www.cnblogs.com/fangchun/p/4732668.html