I am working on an app, which has implements a Search Display Controller. The search results table view, doesn't behave right all the time, and I'm trying to solve this issue from a few days. Here is a screen recording of the behavior.
I'm not modifying the frame or bounds of the table view. I'm only resigning first responder when there is no text in the search field, and calling the [searchDisplayController setActive: animated: ]
method.
Please help me out.
Instead of setting the scrollIndicatorInsets and contentInsets of the searchResultsTableView when the keyboard hides, putting it within the 'willShowSearchResultsTableView:' delegate method fixed it for me:
- (void)searchDisplayController:(UISearchDisplayController *)controller willShowSearchResultsTableView:(UITableView *)tableView
{
[tableView setContentInset:UIEdgeInsetsZero];
[tableView setScrollIndicatorInsets:UIEdgeInsetsZero];
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With