diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m index 8b6666e..e39424d 100644 --- a/src/ios/CDVStatusBar.m +++ b/src/ios/CDVStatusBar.m @@ -168,7 +168,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle; - (void) initializeStatusBarBackgroundView { CGRect statusBarFrame = [UIApplication sharedApplication].statusBarFrame; - if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) { + if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation) && !IsAtLeastiOSVersion(@"8.0")) { // swap width and height. set origin to zero statusBarFrame = CGRectMake(0, 0, statusBarFrame.size.height, statusBarFrame.size.width); } @@ -205,7 +205,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle; CGRect frame = self.webView.frame; - if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) { + if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation) && !IsAtLeastiOSVersion(@"8.0")) { frame.origin.y = statusBarFrame.size.width; frame.size.height -= statusBarFrame.size.width; } else {