zhangxiaomeng1991

NSMutableSet *set = [NSMutableSet new];

[set addObject:@[@1,@2]];

NSMutableArray *arrayC = [@[@1] mutableCopy]; [

set addObject:arrayC];

NSLog(@"set=%@",set);

 

 

[arrayC addObject:@2];

NSLog(@"set=%@",set);

 

NSMutableSet *setB = [set copy];

NSLog(@"setB=%@",set);

 

打印

2018-03-02 11:16:15.810777+0800 test[4534:321047] set={( ( 1 ), ( 1, 2 ) )}

2018-03-02 11:16:15.811008+0800 test[4534:321047] set={( ( 1, 2 ), ( 1, 2 ) )}

2018-03-02 11:16:15.811185+0800 test[4534:321047] setB={( ( 1, 2 ) )}

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-08-07
  • 2021-11-17
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2021-09-05
  • 2021-06-25
相关资源
相似解决方案