0

I want to open PhotoGallery in iPad using 'DKImagePickerController', is it possible??

I have tried to open gallery using UIImagePickerController and its work fine but i have only one option(popoverPresentationController) to open Gallery and its seems small screen to select photo.

    let imagePicker = UIImagePickerController()
    imagePicker.modalPresentationStyle = UIModalPresentationStyle.popover

I want to open only PhotoGallery in landscape mode.

Krunal Patel
  • 1,649
  • 1
  • 14
  • 22

1 Answers1

0
let pickerController = DKImagePickerController()

 pickerController.didSelectAssets = { (assets: [DKAsset]) in
print("didSelectAssets")
print(assets)
}

self.presentViewController(pickerController, animated: true)

use this code to open the camera

Ayush sharma
  • 169
  • 7