NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey: @"self" ascending: NO] ;
NSMutableArray *tmp = [[NSMutableArray alloc] initWithObjects: descriptor, nil] ;
self.key = [[self.dataSource allKeys] sortedArrayUsingDescriptors:tmp];
[descriptor release];
NSSortDescriptor排序示例
5325

被折叠的 条评论
为什么被折叠?



