After IOS7, the system provides two ways to manage the status bar:
1. Through UIApplication management (the entire application's status bar is managed by it)
2. Through Uiviewcontroller management (each uiviewcontroller can have the unused status bar)
Mode one:
1. Code:
UIApplication *myapplication = [uiapplication sharedapplication];
Do not hide
[MyApplication setstatusbarhidden:no];
Set to White
[MyApplication setstatusbarstyle:uistatusbarstylelightcontent Animated:yes];
2. Modify the properties of the Info.plist file: View controller-based status bar appearance = NO (meaning that the status bar is assigned to uiapplication Management) to achieve the entire app as white status bar effect
Mode two:
Individually modify the status bar color inside the Uiviewcontroller
/** Modify the current Uiviewcontroller status bar color is white * * *
-(Uistatusbarstyle) Preferredstatusbarstyle
{return
uistatusbarstylelightcontent;
}