JavaScript overlaysWebView true false , , setNeedsStatusBarAppearanceUpdate , .
CDVCamera.m
https://github.com/apache/cordova-plugin-camera/blob/master/src/ios/CDVCamera.m#L751
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[self setNeedsStatusBarAppearanceUpdate];
}
Currently implemented only viewWillAppear.
By the way: maybe someone knows why the hidden transition of the status bar works with the following code (in the method viewWillAppear):
SEL sel = NSSelectorFromString(@"setNeedsStatusBarAppearanceUpdate");
if ([self respondsToSelector:sel]) {
[self performSelector:sel withObject:nil afterDelay:0];
}
but not with the following:
[self setNeedsStatusBarAppearanceUpdate]
And in viewWillDisappearit only works if afterDelay is not enabled with executeSelector or called [self setNeedsStatusBarAppearanceUpdate];.
source
share