您的位置: 首页 > IT文章 > NSSet 使用 NSSet 使用 分类: IT文章 • 2025-02-06 22:14:13 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"];