NSSortDescriptor on transient attribute for NSFetchedResultsController

强颜欢笑 提交于 2019-12-01 03:54:28

It isn't a KVO issue, it's an issue with what you're trying to do because the FRC requires that the sort can be applied to the underlying SQLite store. In other words, you can only filter and sort on non-transient attributes. You will need to make the attribute non-transient so that it's value is saved into the store and available to SQLite.

For the FRC, only the section name key path attribute can be transient.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!