Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

UIImagePickerController is forced to be showed in portrait mode #28

Open
monday8am opened this issue Mar 8, 2014 · 0 comments
Open

Comments

@monday8am
Copy link

I'm developing an app for iPad that only support landscape mode. If I use the mediaPickerController and try to present it, the app returns an error like this mode is not supported by the controller and "shouldAutorotate is returning YES".

To support this mode, you could add the following code to MediaPickerController:

public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations () {
return _orientation;
}

And maybe permit to pass the desired orientation mask in GetTakePhotoUI or GetPickPhotoUI.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant