Saturday, 31 August 2013

UIImagePickerController returning Null for certain images

UIImagePickerController returning Null for certain images

guys.
I'm having a bit of a problem that I can't really understand. When I grab
an image through UIImagePickerController for most cases I'm returned an
UIImage. This line
UIImage* outputImage = [info
objectForKey:UIImagePickerControllerEditedImage]? : [info
objectForKey:UIImagePickerControllerOriginalImage];
But occasionally, I'm returned a Null image. And I cannot seem to figure
out why. Has anyone experience something similar to this?
I seem find it returning these null images more often from images saved
from the web. But I cant say that it's exclusively that.
Thanks!

No comments:

Post a Comment