hi all in my iphone application images are comming from xml feed and they have variant size,how can i resize them to fix width and hight programmatically.
my code is in which i want to display images in cell of same width and size.my image are comming from rss fedd.
int blogEntryIndex1 = [indexPath indexAtPosition: [indexPath length] -1];
imgstring=[[blogEntries objectAtIndex: blogEntryIndex1] objectForKey: @"image"];
NSURL *url = [NSURL URLWithString:imgstring];
NSData *data = [NSData dataWithContentsOfURL:url];
UIImage *img = [[UIImage alloc] initWithData:data];
cell.imageView.image=img;
please help me out if you can thanks in advance.