Some things that the navigation bar does for Uiscrollview and subclasses

Source: Internet
Author: User

Objective:

-Learn about the navigation bar for Uiscrollview and subclasses

Steps:

-View, my side is a navigation bar of the main controller view with two sub-controllers, you can clearly see the left one TableView is not blocked by the navigation bar, and the latter will be blocked.

-And when I first added a different control, that is, when the child controller is not added, the first one will be blocked, what is the reason? This is because the following property, by default, is yes.

// does not automatically adjust the Contentinset property    of the Uiscrollview Self.automaticallyadjustsscrollviewinsets = NO;

-The following conclusions have been obtained through multiple verification.

Conclusion:

-When the first child view below the navigation bar is ScrollView or its sub-Class View, the default is to adjust its contentinset to 64, and if Navgation is hidden, it will adjust the contentinset to 20.

Some things that the navigation bar does for Uiscrollview and subclasses

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.