<span id="Label3">Starting from iOS7, the system offers 2 management style status bars<br>Managed by Uiviewcontroller (each Uiviewcontroller we can have their own different status Bar)<br>Managed by UIApplication (the Application status bar is managed by It)<br>In iOS7, by default, is managed by uiviewcontroller. Uiviewcontroller enables you to easily manage the visibility and style of the status bar by implementing the following methods<br>Style of the status bar<br>-(uistatusbarstyle) preferredstatusbarstyle;<br><br>Visibility of the status bar<br><p>-(BOOL) prefersstatusbarhidden;</p><p><br></p><p>Suppose you want to use uiapplication to manage the status bar. First you have to change the Info.plist settings.<br></p><p><br></p><p>UIApplication *app = [uiapplication sharedapplication];<br>[app Setstatusbarhidden:yes withanimation:uistatusbaranimationfade];<br>[app setstatusbarstyle:uistatusbarstylelightcontent animated:yes];<br>App.statusbarhidden = YES;<br>App.statusbarstyle = uistatusbarstylelightcontent;<br><br></p><p>IOS status bar</p></span>
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