-1

problem state: I need to access photo library using

UIImagePickerController

for Landscape iPad. This works fine in portrait mode but in Landscape app crashes.

how can use UIImagePickerController to access photo library in Landscape mode. If not then any other alternative way to do this.

I tried these already

override var shouldAutorotate: Bool
{
    return false
}

func application(_ application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow) -> UIInterfaceOrientationMask {
    return .all
}

any help would be much appreciated.

Thanks

zahid shabbir
  • 127
  • 2
  • 11

1 Answers1

0

This answer would help a lot. But it is written in Objective - C. https://stackoverflow.com/a/19630858/5807290. Happy Coding.

Community
  • 1
  • 1
Md. Ibrahim Hassan
  • 5,359
  • 1
  • 25
  • 45