Gap above first table with using UISearchController
问题 I am not able to remove gap over first table row when testing with iOS 10.3. I tried all solutions suggested on other posts like automaticallyAdjustsScrollViewInsets , added a dummy view above UITableView in hierarchy, e.g. here - but all without success. Here is the setup and scenario. I have a UIViewController that has UITableView. Calling it V1. it is embedded in a nav controller. I am adding UISearchController in viewDidLoad() to tableview header. I am not setting any constraints not