OK. I figured out what was happening. I dragged Search Bar and Search Display Controller from the IB object library into my XIB thinking it as UISearchController. The old stuff is deprecated and I figured IB would only be supporting the new UISearchController but it doesn't. If you want to use UISearchController (preferred for iOS 8+) then you have to add it programmatically.
So I did and it works rather well; except for one thing: on start of my app part of the search bar appears to be underneath my section title.
The UISearchController is configured as shown here:
self.searchController = [[UISearchController alloc] initWithSearchResultsController:nil];
self.searchController.searchResultsUpdater = self;
self.searchController.dimsBackgroundDuringPresentation = false;
self.searchController.hidesNavigationBarDuringPresentation = true;
self.searchController.searchBar.delegate = self;
self.searchController.searchBar.returnKeyType = UIReturnKeyDone;
self.tableView.tableHeaderView = self.searchController.searchBar;
self.definesPresentationContext = YES;
[self.searchController.searchBar sizeToFit];
Still can't seem to put an image into the forum so I can't put a screenshot.
Any ideas on how to correct this problem?
Thanks!