diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m index 47bd0e3..7ca8c17 100644 --- a/src/ios/CDVStatusBar.m +++ b/src/ios/CDVStatusBar.m @@ -126,7 +126,7 @@ - (void) _ready:(CDVInvokedUrlCommand*)command - (void) initializeStatusBarBackgroundView { - CGRect statusBarFrame = [UIApplication sharedApplication].statusBarFrame; + CGRect statusBarFrame = (CGRect){ CGPointZero, [UIApplication sharedApplication].statusBarFrame.size }; if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) { // swap width and height. set origin to zero statusBarFrame = CGRectMake(0, 0, statusBarFrame.size.height, statusBarFrame.size.width);