You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AmazingPhotoPicker[33142:543580] [claims] Upload preparation for claim 752F4B17-88C3-4E19-A107-6C6ED9DD7090 completed with error: Error Domain=NSCocoaErrorDomain Code=256 "The file “version=1&uuid=99D53A1F-FEEF-40E1-8BB3-7DD55A43C8B7&mode=compatible.jpeg” couldn’t be opened."
iOS 15.0
Xcode Version 13.1 (13A1030d)
Getting error in below method. Please do needfull. Thanks!
extension ViewController: PHPickerViewControllerDelegate {
func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) {
dismiss(animated: true)
let itemProviders = results.map(.itemProvider)
for item in itemProviders {
if item.canLoadObject(ofClass: UIImage.self) {
item.loadObject(ofClass: UIImage.self) { (image, error) in
DispatchQueue.main.async {
if let image = image as? UIImage {
//Access your image
self.imageView.image = nil
self.imageView.image = image
}
}
}
}
}
}
}
The text was updated successfully, but these errors were encountered:
AmazingPhotoPicker[33142:543580] [claims] Upload preparation for claim 752F4B17-88C3-4E19-A107-6C6ED9DD7090 completed with error: Error Domain=NSCocoaErrorDomain Code=256 "The file “version=1&uuid=99D53A1F-FEEF-40E1-8BB3-7DD55A43C8B7&mode=compatible.jpeg” couldn’t be opened."
iOS 15.0
Xcode Version 13.1 (13A1030d)
Getting error in below method. Please do needfull. Thanks!
extension ViewController: PHPickerViewControllerDelegate {
func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) {
dismiss(animated: true)
let itemProviders = results.map(.itemProvider)
for item in itemProviders {
if item.canLoadObject(ofClass: UIImage.self) {
item.loadObject(ofClass: UIImage.self) { (image, error) in
DispatchQueue.main.async {
if let image = image as? UIImage {
//Access your image
self.imageView.image = nil
self.imageView.image = image
}
}
}
}
}
}
}
The text was updated successfully, but these errors were encountered: