iOS summary _ios7.0 after changing the status bar font face problem

Source: Internet
Author: User

First, add the view controller-based status bar appearance entry in the Info.plist file

If set to Yes, the view controller sets the priority of the status bar higher than the application setting; set to No to the setting of application.

Although 7.0SDK later in the Uiviewcontroller also joined the

-(uistatusbarstyle) Preferredstatusbarstyle Ns_available_ios (7_0); Defaults to Uistatusbarstyledefault

-(BOOL) Prefersstatusbarhiddenns_available_ios(7_0); //Defaults to NO

But I've set the View controller-based status bar appearance to Yes and I've rewritten these methods, and I don't know if I've got something wrong, We have a solution to this.


Ways to change font color:

Set view controller-based status bar appearance to No

Turn White

[[uiapplicationsharedapplication] setstatusbarstyle: Uistatusbarstylelightcontent];

into a black default

[[uiapplication sharedapplication] setstatusbarstyle: Uistatusbarstyledefault];






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.