Strange white space at UITableView header when using UISearchController with UITableViewController on iOS 10
问题 The white space only appears on iOS 10. 回答1: I ran into this problem as well. If you have the vertical scroll indicator enabled, you should be able to see that it's a UIScrollView 's inset issue. And seems like it only happens when you use a UITableViewcontroller as the searchResultsController of a UISearchController . And this extra space is visible at both the top and bottom of the view. This answer is not pretty, but I'm adding this in for now. if #available(iOS 10.0, *) {