uisearchbar + uitableview + nsfetchedresultscontroller
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.
精彩评论