mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-18 17:02:49 +08:00
Match statusbar style to default background color of #000000
This commit is contained in:
parent
4ddd82446a
commit
ec5fa951df
@ -48,6 +48,7 @@
|
||||
|
||||
_statusBarBackgroundView = [[UIView alloc] initWithFrame:frame];
|
||||
_statusBarBackgroundView.backgroundColor = [UIColor blackColor];
|
||||
[self styleLightContent:nil]; // match default backgroundColor of #000000
|
||||
|
||||
NSString* setting;
|
||||
|
||||
@ -87,7 +88,6 @@
|
||||
bounds.size.height -= statusBarFrame.size.height;
|
||||
|
||||
self.webView.frame = bounds;
|
||||
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];
|
||||
[self.webView.superview addSubview:_statusBarBackgroundView];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user