CB-4930 - (prefix) InAppBrowser should take into account the status bar

This commit is contained in:
Shazron Abdullah 2015-04-03 12:34:06 -07:00
parent 461d9e9c4c
commit dfd0999581

View File

@ -975,6 +975,20 @@
@implementation CDVInAppBrowserNavigationController : UINavigationController
- (void) viewDidLoad {
CGRect frame = [UIApplication sharedApplication].statusBarFrame;
// simplified from: http://stackoverflow.com/a/25669695/219684
UIToolbar* bgToolbar = [[UIToolbar alloc] initWithFrame:frame];
bgToolbar.barStyle = UIBarStyleDefault;
[self.view addSubview:bgToolbar];
[super viewDidLoad];
}
#pragma mark CDVScreenOrientationDelegate
- (BOOL)shouldAutorotate