NSArray中存的是实体时的排序

NSArray中存储的是实体时的排序

by 伍雪颖

NSSortDescriptor *sortDescriptor1 = [NSSortDescriptor sortDescriptorWithKey:@"distanceValue" ascending:YES];
NSArray *tempArray = [goodsInfoArray sortedArrayUsingDescriptors:[NSArray arrayWithObjects:sortDescriptor1, nil]];


posted on 2014-10-14 21:20  gcczhongduan  阅读(176)  评论(0编辑  收藏  举报