标签:
NSArray *array = [[NSArray alloc] initWithObjects:@"12",@"2",@"3",@"2",@"1",@"5", nil]; NSSet *uniqueElements = [ NSSet setWithArray :array ]; for (id element in uniqueElements ) { NSLog(@"%@",element); } }
标签:
原文地址:http://www.cnblogs.com/mlgbya/p/4278488.html