比如有一个数组: NSArray *arr = @[@"1", @"2", @"3"]; 倒过来排序: arr = [[arr reverseObjectEnumerator] allObjects]; NSMutableArray *accountArr = [NSMutableArray arrayWithContentsOfFile:filePath]; self.accountArr = (NSMutableArray *)[[accountArr reverseObjectEnumerator] allObjects];
原文地址:https://www.cnblogs.com/Free-Thinker/p/11393514.html
时间: 2024-10-19 08:05:48