I have a table view with a search bar above it, and when the search bar is pressed I want the table view to become inactive. So I have this method:
- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar
{
self.tableView.userInteractionEnabled = NO;
}
with the same class being the UISearchBarDelegate. For some reason though it doesn't disable the table view. Any thoughts? Let me know if there's any other pieces of code needed to help. Thanks.