Challenge failed


Is anyone else struggling with this one. I have managed with all the other challenges but I can’t manage with this one.

I have managed to preserve the aspect ratio of the original image (see below) but otherwise I am stumped!

[code]- (void)setThumbnailDataFromImage:(UIImage *)image

//Create an empty image of size 70 x 70
//CGRect imageRect = CGRectMake(0, 0, 70, 70);
//Changed to maintain aspect ratio
int width = image.size.width;
int height = image.size.height;
CGRect imageRect = CGRectMake(0, 0, width, height);





Might be worth checking out the other posts in this section - there are a few of us who had to work a bit harder to solve this one and shared our approaches.

If it’s any consolation, I’ve finished the book now but found this one the most challenging - especially the way I did it :unamused:



Cheers mate, I will do so!