Closed wakaryry closed 4 years ago
@wakaryry
Sorry for long time no response.
For dimissal, you should call the dimiss()
on your view controller but not on the picker.
Hope this help.
Feel free to reopen it again if you need more help.
For dimissal, use below code
self.dismiss(animated: true, completion: {
if photos.count > 0 {
upload(image: photos.first!)
}
})
I want to dismiss the picker after I didFinishPicking, it will call
didFinishPicking
delegate after I edited my picture, and the dismiss can not dismiss the picker. It's still in the picker page where to select an image.And then I tap the finish in the first page of the picker, it will call
didFinishPicking
delegate and then dismiss the picker.It will call twice
didFinishPicking
delegate method in my oneselect and edit
. And I can not dismiss the picker with one dismiss. So I use two dismiss to dismiss the picker.