Last Updated: February 25, 2016
·
2.74K
· 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];
 }