tags:

views:

36

answers:

1

I have an application which has around 800 images. Is there any way to re size the images to specific size. I have tried using the following code:

UIImage *image = [[UIImage imageNamed:recipeObj.recipeImage]
    _imageScaledToSize:CGSizeMake(64.0f, 61.0f)
 interpolationQuality:1];
cell.imageView.image = image;

This code snippet gives me a warning. Is there any other alternative way for resizing images?

A: 

You could look at this blog post :

http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/

At the end he's attached the resizing code as a category on UIImage.

deanWombourne
Thanks for the link
Swapna