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];

你可能感兴趣的:(NSArray)