大家好
我的 CoreData 驱动应用程序有多个来自同一存储的数据 View ,并且全部使用 NSFetchedResultsController。目前,它们的 NSFetchedResultsController 缓存都具有相同的名称“Root”。我的应用程序的用户可以并且可能会在 View 之间不加区别地跳转。如果我为每个 NSFetchedResultsController 的缓存指定一个唯一的名称,用户体验会更好吗?
TIA,佩德罗:)
最佳答案
建议为不同的提取提供不同的缓存名称,这将有助于提高性能。
If you have multiple fetched results controllers with different configurations (different sort descriptors and so on), you must give each a different cache name.
干杯, 罗格
关于iPhone - NSFetchedResultsController 的缓存名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4295474/