开发者

uisearchbar + uitableview + nsfetchedresultscontroller

开发者 https://www.devze.com 2022-12-31 17:06 出处:网络
I have a view controller that has a UITableView which is populated by a NSFetchedResu开发者_JAVA技巧ltsController.I\'d like to add a UISearchBar to be able to filter the records from Core Data that ar

I have a view controller that has a UITableView which is populated by a NSFetchedResu开发者_JAVA技巧ltsController. I'd like to add a UISearchBar to be able to filter the records from Core Data that are displayed in the UITableView via the NSFetchedResultsController.

I'd like to know what the "cleanest" way to do this is, and if there is a clear example of this to be found.


The cleanest solution I found was to use two fecthedResultsController, as described in this answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消