Vasconcelos
Vasconcelos

Reputation: 13

UIImagePicker in Landscape mode IOS 8

My app uses the landscape mode and need to access the photo gallery. Appears this error: Supported orientations has no common orientation with the application, and [PUUIAlbumListViewController shouldAutorotate] is returning YES'

    var image = UIImagePickerController()
    image.delegate = self

    image.sourceType =  UIImagePickerControllerSourceType.PhotoLibrary
    image.allowsEditing = false

    self.presentViewController(image, animated: true, completion: nil)

Upvotes: 0

Views: 643

Answers (1)

foundry
foundry

Reputation: 31745

From the docs:

The UIImagePickerController class supports portrait mode only.

Upvotes: 1

Related Questions