如何将固定大小的照片从照片库带到UIImagePickerController?

时间:2016-04-24 09:46:16

标签: swift uiimagepickercontroller

如何将照片库中固定大小的照片带到UIImagePickerController?

我目前的实施:

func pickPhotoFromGallery(){
    var picker = UIImagePickerController()
    picker.delegate = self
    picker.sourceType = .PhotoLibrary
    picker.mediaTypes = [kUTTypeImage as! String]
    self.presentViewController(picker, animated: true, completion: nil)
}

0 个答案:

没有答案