I have created a UIImageview programmatically, and I am showing an image from a string which contains url of a picture
But I wish to show a part(a rectangle at center) of the original image. How do I achieve this?
NSString * urlString = @"http://4.bp.blogspot.com/- rEqVgkdnuxE/TWd6Fm6EWtI/AAAAAAAABSc/cWCehI51v_Y/s1600/red_rose_flower3.jpg"
NSURL *url = [NSURL URLWithString:urlstring];
NSData *data = [NSData dataWithContentsOfURL:url];
UIImage *img = [[UIImage alloc] initWithData:data];