iOS development-iOS7 display deviations (UITableView down) workaround

Source: Internet
Author: User

Have encountered a problem before.

Is the use of storyboard dragged out of the control, iOS7 on the run is always inexplicable move down.

For example (the red area is redundant)



The workaround:

IOS7 has added this attribute in Conttoller:

Automaticallyadjustsscrollviewinsets, when set to Yes (default Yes), assume that there is only one uiscrollview or its subclass view inside the view. Then it will set the corresponding padding on its own initiative. This allows scroll to occupy the entire view without obscuring the navigation bar.

We can fix the problem by setting the Automaticallyadjustsscrollviewinsets property to No.

For example, the following:


Of course, you can also do this by changing the Uiviewcontroller Edgesforextendedlayout property.

Self.edgesforextendedlayout = Uiextendededgenone;

iOS development-iOS7 display deviations (UITableView down) workaround

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.