Eliktz
Eliktz

Reputation: 572

ios 8 uiimagepicker camera orientation issue

I have iPad application and i use it to take pictures. I use UIImagePicker and everything worked out fine until iOS8.

on iOS8 - the camera view of the picker opens up fine (no matter what orientation i am on), but when i rotate the device, the camera view remains on the original orientation (only scaled). moreover - if i turn the device up-side-down than i the camera is up-side-down too.

Any ideas? at start i thought it is a beta issue, but now i see it happens on the GM Release too. I saw it on applications like Google Drive also.

very strange..

EDIT: happens on iOS 8.0.2 too

Upvotes: 1

Views: 1690

Answers (2)

Eliktz
Eliktz

Reputation: 572

Answered it on different thread:

My answer

in a couple of words:

  1. It's an apple bug

  2. there is a patch to fix it for now

EDIT: fixed in iOS 8.1.1

Upvotes: 2

rusty8521
rusty8521

Reputation: 41

Using Xamaring iOS, you must override the UIImagePickerController to return false on the should autorotate function. I assume that there is an objective c equivalent.

    public class UIImagePickerWithoutRotation : UIImagePickerController
    {
        public override bool ShouldAutorotate()
        {
            return false;
        }
    }

Upvotes: 0

Related Questions