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

猜你喜欢

转载自lijinfengjava.iteye.com/blog/1684466