是否可以在不将 NSFetchedResultsController 结果转换为数组然后嵌套数组的情况下让单个 UITableView 显示来自两个链接实体的记录?
让 UITableView 结果看起来像:
任何方向都会很好,非常感谢。
最佳答案
也许使用 fetched properties ? :
Fetched properties represent weak, one-way relationships. In the employees and departments domain, a fetched property of a department might be "recent hires" (employees do not have an inverse to the recent hires relationship). In general, fetched properties are best suited to modeling cross-store relationships, "loosely coupled" relationships, and similar transient groupings.
关于iphone - 直接从 Core Data 获取的具有多对多的单个 UITableView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5707844/