IOS--TableView on top of white

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.