This is the code i have:
UIImage *originalImage = [dictionary objectForKey:@"OriginalImage"];
UIImage *resizedImage = [originalImage imageScaledToFitSize:CGSizeMake(1024,1024)];
Then imageScaledToFitSize is a big method which exists, and which it’s aware of (otherwise i’d be getting a warning).
The second line gives me a crash and this error:
-[NSPathStore2 imageScaledToFitSize:]: unrecognized selector sent to instance 0x11c660
2012-03-04 11:23:18.207 Journal[7935:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSPathStore2 imageScaledToFitSize:]: unrecognized selector sent to instance 0x11c660'
Are you sure dictionary is returning a
UIImageobject and not a path to an image? The exception seems to indicate this (NSPathStore2)