`

nsarray倒序排序

 
阅读更多

 

 NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey: @"self" ascending: NO] ;

    NSMutableArray *tmp = [[NSMutableArray alloc] initWithObjects: descriptor, nil] ;

    self.key = [[self.dataSource allKeys] sortedArrayUsingDescriptors:tmp];

    [descriptor release];

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics