From 4c545457ee49c8ff91391b951a21846eed821537 Mon Sep 17 00:00:00 2001 From: Michael Davydov Date: Wed, 21 May 2014 19:45:05 +0700 Subject: [PATCH] Issue #36 fix --- src/ios/CDVStatusBar.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);