Detecting iPhone camera orientation

后端 未结 3 1005
情书的邮戳
情书的邮戳 2021-02-11 07:42

I\'m getting inconsistent results depending on whether I get the image directly from the camera in the callback or choosing it from the camera roll.

In the UIImag

3条回答
  •  渐次进展
    2021-02-11 08:21

    I have read somewhere that the UIImagePickerController doesn't turn on listening to hardware orientation events, so you may need to call

    [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
    

    before you capture images in your own app. I'm about to go try testing this myself, so I hope it works!

提交回复
热议问题