I have the following code:
- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar
{
float searchBarBottom = self.searchController.searchBar.frame.size.height;
// searchBarBottom = 200.0;
CGPoint offset = CGPointMake(0, searchBarBottom);
self.tableView.contentOffset = offset;
return YES;
}
I hit the search bar which appears above my table view and the search bar controller shows the search bar with a cancel button on the top line and my scope bar below. I want the table view to slide down below the scope bar but above isn't working. How does this get fixed?