How to switch UITableView's NSFetchedResultsController (or its predicate) programmatically?

前端 未结 4 887
故里飘歌
故里飘歌 2020-12-08 17:43

I have a UITableView that displays a subset of a large number of entities named \"Documents\". The subset is defined by another entity \"Selection\". Selections are named, o

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 18:47

    An important note: if you "overwrite" a fetchController object make sure you clear its .delegate first - otherwise you'll get crashes when deleting rows, etc as the old fetchController and its delegate get events.

提交回复
热议问题