开发者

UIImagePicker force photo in portrait mode (disable accelerometer)

开发者 https://www.devze.com 2023-04-13 00:11 出处:网络
I\'m building an application which takes photos using the UIImagePickerController. Works great. The problem however is that I don\'t want to use 开发者_运维百科image rotation. I always want a photo

I'm building an application which takes photos using the UIImagePickerController. Works great.

The problem however is that I don't want to use 开发者_运维百科image rotation. I always want a photo in portrait mode just as the user sees it on the screen.

When you take your iPhone on the side and then slowly take it back to normal the orientationmode isn't updated. Now when you take the photo the orientation flags in the EXIF data are set.

Is there a way to get rid of orientation support in de imagepicker? Could I just disable the accelerometer?

0

精彩评论

暂无评论...
验证码 换一张
取 消