hyperoslo / ImagePicker

:camera: Reinventing the way ImagePicker works.
Other
4.87k stars 677 forks source link

when i press done button , i am poped to rootView Controller of current navigation stack #393

Closed varkrishna closed 4 years ago

varkrishna commented 6 years ago

i have same issue with default UIImagePickerController also, please help @IBAction func showImgPicker(_ sender: UIButton) { let imagePickerController = ImagePickerController() imagePickerController.delegate = self imagePickerController.imageLimit = 5 present(imagePickerController, animated: true, completion: nil) } func wrapperDidPress(_ imagePicker: ImagePickerController, images: [UIImage]){ imagePicker.dismiss(animated: true, completion: nil) } func doneButtonDidPress(_ imagePicker: ImagePickerController, images: [UIImage]){ imagePicker.dismiss(animated: true, completion: nil) }

func cancelButtonDidPress(_ imagePicker: ImagePickerController){ imagePicker.dismiss(animated: true, completion: nil) }`