u78--g
Last Updated: February 25, 2016
·
2.609K
· semka

Easy way to add orientation to image captured with AVFoundation

Just add something like this to your video connection:

if ([videoConnection isVideoOrientationSupported]) {
     [videoConnection setVideoOrientation:[UIDevice currentDevice].orientation];
 }