danielebogo / DBCamera

DBCamera is a simple custom camera with AVFoundation
MIT License
1.26k stars 262 forks source link

Image orientation issue #164

Open vanditmehta opened 9 years ago

vanditmehta commented 9 years ago

And the issue is when we implement it for portrait mode application then before we push or present to the camera view if we change the device orientation to landscape mode then it returns the image with wrong orientation

Please suggest any solution,

vanditmehta commented 9 years ago

DBCameraViewController.m in initWithDelegate method

_deviceOrientation = UIDeviceOrientationPortrait;

is static is creating the issue.

We can resolve it by assigning _deviceOrientation dynamically