iOS 11 has recently come down and needs an adaptation system, so the test system found a large amount of white space between the TableView and top controls on the same machine, or between navigation bars;
This problem is some interface has, some interface is not;
Changing the distance from the navigation bar or other controls is also of little use;
specific as follows;
The last discovery is because there is no problem of setting TableView's head view;
Previously, if you did not set the default to NULL, you should now specifically set it to empty. The workaround is as follows
#pragma mark this method is added to the problem with iOS 11
-(UIView *) TableView: (UITableView *) TableView viewforheaderinsection: (Nsinteger) section{
return nil;
}
Sometimes the bottom view of the TableView can also be changed by this behavior.
-(UIView *) TableView: (UITableView *) TableView viewforfooterinsection: (Nsinteger) section{
return nil;
}
IOS--TableView on top of white