A feasible method has been tested:
Plist uiviewcontrollerbasedstatusbarappearance set to Yes;
Viewdidload Riga [self setneedsstatusbarappearanceupdate];
Sets the background color of the view to black;
Append method
-(Uistatusbarstyle) preferredstatusbarstyle{return uistatusbarstylelightcontent;}
Reprint: Http://www.w3c.com.cn/ios7 status bar keep white on black background
IOS7 Set status bar color
The IOS7 setting status bar is transparent, and the View Controller view Controller is full screen, so when you use TableView you can overlay the entire tableview on view, and then set the view background to the corresponding color, Then the State sample becomes the right color. If the background is black, the status bar ink to recognize the text is black, so also modify the color of the text.
Ways to change the text of the status bar:
(1). Add View controller-based status bar appearance in Info.plist to No,
(2). Self.view.backgroundColor = [Uicolorblackcolor];
Of course you don't have to set the entire background to black, you can also only add a black background view on the position (0, 0, 320, 20);
In this way, the status bar of a view controller becomes white on a black background.
Reprint: http://blog.csdn.net/yuanya/article/details/16336645