I\'m using UISearchBar
in my app, with showsScopeBar=YES
. When running under iOS8 (both in the simulator and on a device) the scope bar is hidden a
This issue is occurring in the iOS 8 release version as well. I added these 2 lines in my viewWillAppear: and that solved it.
- (void)adjustSearchBarToShowScopeBar{
[self.searchBar sizeToFit];
self.tableView.tableHeaderView = self.searchBar;
}
Just adding [self.searchBar sizeToFit] was covering up my tableview's first row.
Just refreshing the tableview header fixed the issue perfectly.