Solution to mismatch between iPhone translucent status bar and navigation bar

Source: Internet
Author: User
The status bar of the iPhone can be set to translucent, which is well known. With uinavigationcontroller, when switching pages, if the view of your sub-viewcontroller is full screen (480*320), there will be misplacement, the result is that the sub-view is shifted down by 20 pixels (that is, the height of the status bar ). I did not find the answer after searching for a long time, so I went to the official document and found this method. This is an attribute of uiviewcontroller. wantsfullscreenlayout can easily understand the literal meaning (Apple's method names are well understood, or they are very user-friendly with tenses and syntaxes). This is the problem of "I want to layout in full screen ".

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: 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.