So, i have tableview in my iOS app. i need to fill it with some images from web. At first to get those images from web i use:
NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.somepicture.jpg"]]; NSImage *image = [[UIImage alloc] initWithData:data];
but the problem is that those images are sometimes large, so i need to somehow compress that data before download it. I need images of about 85px x 85px.
So, my question is how to get those images from web by not downloading entire data. I am sure that there is solution, because i already made it in Java for Android. Or are any other ways to approach the problem.
Thanks for suggestions!