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