NSArray中存的是实体时的排序

来源:互联网 发布:js怎么查看dom元素属性 编辑:程序博客网 时间:2024/06/10 22:09

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

by 伍雪颖

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


0 0