The frame of the view when IOS is using Uinavigationcontroller and Tabbarcontroller

Source: Internet
Author: User

may have been mistaken, always think that the use of Uinavigationcontroller on the IOS6 or Tabbarcontroller will be because of the bar to affect the size of the view frame of the child controller. On xcode5.1 today, no matter ios6 or 7, using a container controller, the resulting bar will not affect the frame of the controller's view.

Let's look at a simple example:

First, it can be seen that frame height is 568, without receiving bar influence. Next under top bars and under bottom bars attribute is not selected, frame is still 568, it is visible that these 2 properties are not the view frame, but the view of the coordinate system, and view on the IOS7 is full screen!

And look at the IOS6:

You can see that the height of the IOS6 is only 20 height without the status bar, which means bar does not affect the view's frame! The view is behind bar!

Tabbarcontroller nested Navigationcontroller is the same, did the experiment.

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.