views:

237

answers:

1

Hi all,

I have a view controller that has a UITableView which is populated by a NSFetchedResultsController. 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. It seems pretty simple, but I've searched and searched and can't find a good example.

Thanks! John

A: 

Hi John, here is an article about how to filter the record from UITableView using UISearchBar:

UITableView - Searching table view [Source code is also available with the Article].

Hopefully, you will get a clear idea about searching in table views.

Ansari