0
需要一些建议到:NSFetchedResultController可以做到这一点?NSFetchedResultContoller可以做到这一点吗?
UITableView:
[section name] <= {entity: Section, value: title}
[cell title] <= {entity: Cell, value: title}
Model:
[entity: Section, properties: title] <->> [entity: Cell, properties: title, imgPath]
麻烦: 计数部分,他们的标题是工作,不能从关系获取对象细胞
感谢您的帮助......
就像一个魅力:) self.fetchController.sections.count工作。 //返回计数部分 id secInfo = self.fetchController.sections [section]; [secInfo numberOfObjects]; //返回 –
iTux
中的行的计数id secInfo = self.fetchController.sections [section]; NSString * title = [secInfo name]; //返回标题的标题 –
iTux
MYMOObject * cellObj = [self.fetchController objectAtIndexPath:indexPath]; //返回单元对象 – iTux