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];