To setStatusBarStyle when app is launching
Pergunta
The status bar style is set as following:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
[application setStatusBarStyle:UIStatusBarStyleBlackOpaque];
}
But the status bar style when app is launching is UIStatusBarStyleDefault
. How to set the status bar style while the app is launching? Thanks in advance!
Solução
Go ot your project, Add a key value pair to the project-Info.plist
Key = UIStatusBarStyle
Value = UIStatusBarStyleBlackOpaque
This will make the default status bar to UIStatusBarStyleBlackOpaque
for further info check the following How to change the UIStatus bar color?
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow