CB-4958 - iOS - Camera plugin should not show the status bar

This commit is contained in:
Shazron Abdullah 2013-10-15 10:29:54 -07:00
parent eab4822ae9
commit 4e6cf5cc2e

View File

@ -736,4 +736,21 @@ static NSSet* org_apache_cordova_validArrowDirections;
@synthesize webView;
@synthesize popoverSupported;
- (BOOL)prefersStatusBarHidden {
return YES;
}
- (UIViewController*)childViewControllerForStatusBarHidden {
return nil;
}
- (void)viewWillAppear:(BOOL)animated {
SEL sel = NSSelectorFromString(@"setNeedsStatusBarAppearanceUpdate");
if ([self respondsToSelector:sel]) {
[self performSelector:sel withObject:nil afterDelay:0];
}
[super viewWillAppear:animated];
}
@end