How iOS hides the status bar, including network logos, time markers, battery markers, and more

Source: Internet
Author: User

When we are developing the app, when we encounter the status bar, the button above the Navigationbar is extremely difficult to click, so this time, it is best that we can hide the status bar artificially.

If you always need to hide, add the key value directly inside the Info.plist: View controller-based status bar appearance

If not, the steps are as follows:

1, click on any location + number, you can add:

2. Select: View controller-based status bar appearance This item, all the properties are arranged in the order of ABC, so find the corresponding can;

3. Set the value of the key to No;

There is no status bar to run the program again.

Some students said, I hope to show in a view, in another view under the hidden, this problem, should be required to use code implementation, there is no idea, if a classmate has been completed, please give me a message, humbly consult.

Write code is a careful work, this problem has troubled me for a long time, oneself also lingered in this place for a long, seriously read this attribute, only then get the correct solution.

Hope that they "can not be fun", "I want to adhere to"!

How iOS hides the status bar, including network logos, time markers, battery markers, and more

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.