0

I have app where i use CoreData to fill my tableViewCell's. In that CoreData i have one entity with 4 strings attributes and one Date attribute. Is possible to arrange my table cells by this Date attribute?

I have trying search some manual here and on youtube, but unsuccessful.

4

1 回答 1

1

将排序描述符添加到您的 fetch 中。例如

fetchRequest.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"<name_of_date_property" ascending:YES]];
于 2013-10-02T01:20:22.893 回答