From eb469344fbe07eac0c085d4e0086961a0a85ecc1 Mon Sep 17 00:00:00 2001 From: Joakim Gyllstrom Date: Thu, 23 Jul 2015 18:55:57 +0200 Subject: [PATCH] Use status bar orientation property --- LLSimpleCamera/LLSimpleCamera.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LLSimpleCamera/LLSimpleCamera.m b/LLSimpleCamera/LLSimpleCamera.m index 20c902b..ce21c23 100644 --- a/LLSimpleCamera/LLSimpleCamera.m +++ b/LLSimpleCamera/LLSimpleCamera.m @@ -697,7 +697,7 @@ - (AVCaptureVideoOrientation)orientationForConnection } } else { - switch (self.interfaceOrientation) { + switch ([[UIApplication sharedApplication] statusBarOrientation]) { case UIInterfaceOrientationLandscapeLeft: videoOrientation = AVCaptureVideoOrientationLandscapeLeft; break;