1

After hitting Search button for UISearchController, scroll indicator is stopping at keyboard height. I logged contentsize, it is printing it as 1056.000000 EdgeInsets are 0s for all parameters scroll indicator image

any suggestions for make it proper

user976659
  • 61
  • 1
  • 1
  • 6

2 Answers2

1

got the problem, need to set insets to zero

- (void)searchDisplayController:(UISearchDisplayController *)controller willShowSearchResultsTableView:(UITableView *)tableView {

    [tableView setContentInset:UIEdgeInsetsZero];
    [tableView setScrollIndicatorInsets:UIEdgeInsetsZero];  
}
user976659
  • 61
  • 1
  • 1
  • 6
0

Hmmm, you might be having the same issue I had, which was fixed by going into the Storyboard and reordering the controls on your particular iOS screen:

Why is there extra padding at the top of my UITableView with style UITableViewStyleGrouped in iOS7

This bug is still alive, kicking and annoying in iOS 8.2, and seems to affect any standard iOS controls with a vertical scrollbar (UITableView, UIScrollView, UITextView, etc)

Community
  • 1
  • 1
Mike Gledhill
  • 27,846
  • 7
  • 149
  • 159