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"];

  

posted @ 2015-08-15 16:29  JonyFang  阅读(166)  评论(0编辑  收藏  举报