¡@

Home 

2014/10/15 ¤U¤È 10:11:48

iphone Programming Glossary: mysortdescriptor

Custom sorting with NSFetchedResultController (subclassing NSSortDescriptor)

http://stackoverflow.com/questions/4106184/custom-sorting-with-nsfetchedresultcontroller-subclassing-nssortdescriptor

deleteObject book self.tableView reloadData In RootViewController.m replace the sort descriptor code with MySortDescriptor myDescriptor MySortDescriptor alloc init NSArray sortDescriptors NSArray alloc initWithObjects myDescriptor nil fetchRequest.. self.tableView reloadData In RootViewController.m replace the sort descriptor code with MySortDescriptor myDescriptor MySortDescriptor alloc init NSArray sortDescriptors NSArray alloc initWithObjects myDescriptor nil fetchRequest setSortDescriptors sortDescriptors.. sortDescriptors NSArray alloc initWithObjects myDescriptor nil fetchRequest setSortDescriptors sortDescriptors Add MySortDescriptor class @implementation MySortDescriptor id init if self super initWithKey @ title ascending YES selector @selector compare..