sh数组快速倒序
NSArray *arr = @[@"first",@"second"];
arr = arr.reverseObjectEnumerator.allObjects;
NSLog(@"%@",arr);
数组快速去重
NSArray*arr=@[@"first",@"second",@"first"];
arr=[arrvalueForKeyPath:@"@distinctUnionOfObjects.self"];
NSLog(@"%@",arr);
sh数组快速倒序
NSArray *arr = @[@"first",@"second"];
arr = arr.reverseObjectEnumerator.allObjects;
NSLog(@"%@",arr);
数组快速去重
NSArray*arr=@[@"first",@"second",@"first"];
arr=[arrvalueForKeyPath:@"@distinctUnionOfObjects.self"];
NSLog(@"%@",arr);
转载于:https://www.cnblogs.com/moyunmo/p/3627679.html