How can I store a UIImage in an NSDictionary?
OK I had this problem recently and the above solutions never worked for me. So if someone else finds their way here to solve the same problem, here is how it's done
NSDictionary *imageDictionary = @{
kImageKey: UIImageJPEGRepresentation(/*INSERT YOUR UIImage HERE*/,0.1)
};
// the 0.1 represents the compression quality 0.0 being lowest to 1.0 being the highest quality
then to get image back from dictionary use
[UIImage imageWithData:[imageDictionary objectForKey: kImageKey]];