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