diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m index 3e86de6..55f7ed6 100644 --- a/src/ios/CDVStatusBar.m +++ b/src/ios/CDVStatusBar.m @@ -90,6 +90,11 @@ static const void *kStatusBarStyle = &kStatusBarStyle; } } +-(void)cordovaViewWillAppear:(NSNotification*)notification +{ + [self resizeWebView]; +} + -(void)statusBarDidChangeFrame:(NSNotification*)notification { //add a small delay for iOS 7 ( 0.1 seconds ) @@ -112,6 +117,8 @@ static const void *kStatusBarStyle = &kStatusBarStyle; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(statusBarDidChangeFrame:) name: UIApplicationDidChangeStatusBarFrameNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(cordovaViewWillAppear:) name: @"CDVViewWillAppearNotification" object:nil]; + _statusBarOverlaysWebView = YES; // default [self initializeStatusBarBackgroundView];