“didChangeSection:” NSfetchedResultsController delegate method not being called

后端 未结 2 1926
太阳男子
太阳男子 2021-01-19 01:01

I have a standard split view controller, with a detail view and a table view. Pressing a button in the detail view can cause the an object to change its placement in the tab

2条回答
  •  情书的邮戳
    2021-01-19 01:56

    This problem was caused by using a transient attribute as the sectionNameKeyPath. When I instead stored the attribute used for the sectionNameKeyPath in the database, the problem went away. I don't know if there is a way to get the sections updated based on a NSFetchedResultsController content changes when using a transient attribute as a sectionNameKeyPath. For now I am considering this a limitation of transient attributes.

提交回复
热议问题