2017-05-17 16 views
0

「DKImagePickerController」を使用してPhotoGalleryをiPadで開きたいですか?即時に「DKImagePickerController」を使用してPhotoGalleryを開くことができます

私はUIImagePickerControllerとその作業をうまく使ってギャラリーを開こうとしましたが、ギャラリーを開くためのオプションが1つだけ(popoverPresentationController)あり、写真を選択する小さな画面のようです。

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

PhotoGalleryを風景モードで開きたいとします。

+0

DKImagePickerControllerが迅速ライブラリである、それは迅速に利用可能にする必要があります。 –

+0

DKImagePickerControllerを使用してライブラリを開くにはどうすればよいですか –

答えて

0
let pickerController = DKImagePickerController() 

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

self.presentViewController(pickerController, animated: true) 

使用カメラを開くには、このコード

関連する問題