NSSortDescriptor *sortByPrice = [[NSSortDescriptor alloc] initWithKey:@"price" ascending:NO];
[fetchRequest setSortDescriptors:[NSArray arrayWithObjects:sortByPrice, nil]]
NSFetchRequest排序
最新推荐文章于 2022-04-05 21:30:12 发布
NSSortDescriptor *sortByPrice = [[NSSortDescriptor alloc] initWithKey:@"price" ascending:NO];
[fetchRequest setSortDescriptors:[NSArray arrayWithObjects:sortByPrice, nil]]