Xcode6 IOS SDK 8.1 Hidden System status bar

Source: Internet
Author: User

Just started to learn iOS development soon, the status bar is also relatively shallow understanding.

The first contact with Xcode is xcode4.6, in which the status bar can set the hidden status bar directly in the application:

Such as:

or, use [[UIApplication sharedapplication] setstatusbarhidden:yes] To set the status bar to hide.

Later upgrade to XCODE5, as if setting this property is not. Because of beginners, I also did not care, also did not delve into.

With the advent of iOS8, my Xcode has also been upgraded to version 6.0, with the same problem. But since the school iOS development, can not let the problem continue to delay AH! So it's a variety of searches. None of the search results were satisfactory. Later, combined with the search results and myself to guess, finally let me get a way to hide the status bar, said to modify the application's. plist file. There are two places that need to be modified in this file.

1. Set the status bar's initial state to hidden:

2. Add a property view controller-based status bar appearance, set to No, i.e.

  

After modifying these two properties, I finally see the status bar.

If there are other ways to trouble everyone to share with me. Thank you here!

Xcode6 IOS SDK 8.1 Hidden System status bar

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.