Reputation: 1632
When I take a picture in portrait mode everything is fine and looks like this:
in landscape mode it is in the wrong mode and is rotated around 90 degrees. How can I fix that?
Currently, it looks like that in the gallery. It isn't even saved as a landscape picture.
Upvotes: 0
Views: 235
Reputation: 23532
You need to read the orientation from an UIImage like this: image.imageOrientation
. And then rotate accordingly.
Upvotes: 1