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
![](https://coderwall-assets-0.s3.amazonaws.com/uploads/user/avatar/15282/d738f59c0efc154e009828b592a91380.jpeg)
semka
2.745K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#