UIImagePickerControllerDelegate Issues
By : Sherief
Date : March 29 2020, 07:55 AM
this one helps. ... yeah, I'm a moron. It was the memory issue. I was releasing self.ideas on viewDidUnload and I guess the view gets released on receipt of the memory warning because at the time the memory warning is received the image picker modal view is active, not its parent. The memory warning was only being raised when the camera was launched, not the camera roll picker, thus the different behavior depending on which was selected.
|
Problem UIImagePickerControllerDelegate, didFinishPickingMediaWithInfo not called
By : Banafshe Riazi
Date : March 29 2020, 07:55 AM
|
imagePickerController(_:didFinishPickingMediaWithInfo:) Xcode 7 Swift Error
By : kenshin ruoruni
Date : March 29 2020, 07:55 AM
|
UIImagePickerControllerDelegate not called
By : Jean Barroca
Date : March 29 2020, 07:55 AM
Any of those help I have a standalone class to fetch an image from the camera/photo library using UIImagePickerController. , The problem is in the following code snippet: code :
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
guard let image = info[UIImagePickerControllerEditedImage] as? UIImage else {
return
}
completion(image)
picker.dismiss(animated: true, completion: nil)
}
class ViewController: UIViewController {
var picker: ImagePickerService?
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) { [weak self] in
guard let `self` = self else { return }
self.picker = ImagePickerService() { (image) in
print(image)
}
self.picker?.show(from: self)
}
}
}
|
didFinishPickingMediaWithInfo Error using Swift 5
By : user2588452
Date : March 29 2020, 07:55 AM
|