<span id="Label3"></p><p><p> <!--?xml version="1.0" encoding="UTF-8" standalone="no"?--></p></p>Barstyle default: text color black<span style="color: #0000ff; font-size: 18px;"><span style="color: #0000ff; font-size: 18px;">set Stausbar text color (barstyle)</span></span><span style="color: #ff00ff; font-size: 16px;"><span style="color: #ff00ff; font-size: 16px;">(a) program Start interface:</span></span>1_ inside targets set Barstyle and set hide and show StatusBar 2_ inside Info.plist set: barstyle inside: Gary Style is the default black font, below two white<span style="color: #ff00ff; font-size: 16px;"><span style="color: #ff00ff; font-size: 16px;">(b) After the program starts the Interface:</span></span>1_ the current controller is not a navigation controller, and there is no nested navigation controller:1> in Info.plist set view controller-based status bar appearance for yes2> on controller viewdidload Method inside Add call [self setneedsstatusbarappearanceupdate]3> Implementation-(uistatusbarstyle) Preferredstatusbarstyle and return StatusBar type 2_ the current controller is a navigation controller, or if the current controller is nested with the navigation controller:1> the info.plist inside the view controller-based status bar appearance for no2> on the controller viewdidl Oad method inside Add call [[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent]; (lightcontent white, Default Black) note: If you set the hidden StatusBar in the program startup screen and set the View controller-based status bar Appea in Info.plist When Rance is no, StatusBar will also be hidden when the program is started, so this will reset the StatusBar display after the program starts<span style="color: #0000ff; font-size: 18px;"><span style="color: #0000ff; font-size: 18px;">set StatusBar display and hide</span></span>Call [[uiapplication sharedapplication] Setstatusbarhidden:yes withanimation:uistatusbaranimationfade], where the animation type Is: uistatusbaranimationnone,//no animation uistatusbaranimationfade,//fade-in uistatusbaranimationslide,//slide up and down slide out also in the STAUSBA The small circle rotated on R is set @property (nonatomic,getter=isnetworkactivityindicatorvisible) BOOL networkactivityindicatorvisible;<span style="color: #03080e; font-family: Menlo;"><span style="color: #03080e; font-family: Menlo;">Yes will appear, set to No as hidden</span></span><p><p>IOS uistatusbar font colors and hidden animations</p></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