Status Bar in IOS7

Source: Internet
Author: User

This was a very important change on IOS 7:the status bar is no longer a separate bar. It's now something this simply gets drawn on top of the Your view controllers. In previous versions of IOS, if your app displayed the status bar the height of the view controller ' s view is reduced to Compensate-especially if it contained a navigation bar. In IOS 7, your view controllers is always supposed to fill the entire screen.

If the Your app has content near the top of the "the screen" but no navigation bar and then you had a problem on your hands, as the St ATUs Bar would draw on top of the that content. That's exactly what's happening on the Map Detail. There is three possible ways to handle this:

Move your content down by a points and make to the status bar. This was the easiest solution, but it doesn ' t work very well if your content was embedded in a scroll view or relies on a TA BLE view.

implement the Prefersstatusbarhidden method in your Uiviewcontroller subclass, and return YES to hide the status bar. The problem with this approach are a user wants to keep the status bar visible on most non-game apps.

add a navigation bar on top, either by embedding the view controller inside a navigation controller, or by adding your O WN instance of Uinavigationbar. The navigation bar would extend under the status bar. Your content would still sit under these the bars, but the navigation bar would blur it. This was the approach you'll take in this tutorial.

--------Ios_7_by_tutorials_1_1/chapter 7:transitioning to IOS 7–what ' s New with Auto Layout page.244

Status Bar in IOS7

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.