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];
}
Written by Sёmka Novikov
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Avfoundation
Authors
semka
2.739K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#