How do I use the UISearchBar and UISearchDisplayController
First add the UISearchDisplayController to your table view Then set its delegate. Implement the following methods. Demo Project In your .h File @interface ViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { NSMutableArray *contentList; NSMutableArray *filteredContentList; BOOL isSearching; } @property (strong, nonatomic) IBOutlet UITableView *tblContentList; @property (strong, nonatomic) IBOutlet UISearchBar *searchBar; @property (strong, nonatomic) IBOutlet UISearchDisplayController *searchBarController; In … Read more