status bar (battery) hidden!

Source: Internet
Author: User

On IOS 8, the status bar becomes transparent, which is good, this time if the design background color for pure black picture browsing, it feels great (should be a pure black background color, the status bar has become a pure black, so the status bar hidden illusion).

However, there is a wonderful customer, charging time to browse, hehe, the battery green icon shows out, you mother, also and I said: "The size of the green picture will change with the size of the battery, this is a bug, then click on the image navigation bar appears, click on the Disappeared", I go to your paralysis, you have not played Apple AH , this is the battery's logo, you silly bird! Also said this is bug,bug you paralysis Ah! The most annoying kind of bird man! Do not understand also forced to force! Click on the picture, the navigation bar disappears with the display, this is the demand, grass mud horse, you have not played Apple Ah, Apple album picture Browse not just like this?? Silly lack!

Later no way, in order to block the mouth of this rotten person, I found some code on the Internet to hide the status bar! Well, also must be compatible with iOS7, he, the customer is not to use iOS7 system, iphone4s to test, you paralyzed, you can not use a better test cell phone? Is it so poor?? Iphone4s itself memory is small, run the time will inevitably encounter the situation of insufficient memory, your uncle's! Still tell me this bug that bug, Laozi optimization Your sister Ah, a big network communication always open, there are various interfaces, you special 4s memory can do it! That's stupid.

The groove is complete, the following code:

  if ([Self respondstoselector: @selector (setneedsstatusbarappearanceupdate)]) {        //IOS 7        [self Prefersstatusbarhidden];        [Self performselector: @selector (setneedsstatusbarappearanceupdate)];    } -(BOOL) prefersstatusbarhidden{    

status bar (battery) hidden!

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.