Merge pull request #47 from SongJiaqiang/jq.fixbug

Use a most effective way to retrieve real interface orientation.
This commit is contained in:
Ricardo Torrão 2016-07-06 11:05:43 +01:00 committed by GitHub
commit dd34c6468e
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate, UIGe
}
private func _currentVideoOrientation() -> AVCaptureVideoOrientation {
switch UIDevice.currentDevice().orientation {
switch UIApplication.sharedApplication().statusBarOrientation {
case .LandscapeLeft:
return .LandscapeRight
case .LandscapeRight: