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!