xcode - Resizing image view in table cell iphone -
I am developing an iPhone app where a high quality image is being downloaded from my app server. I have to change it to its half size size and display it in a table cell. Can someone help me what I can use?
Appreciate your suggestions!
UIImage * yourImage = [UIImage imageWithData: yourdata]; UIImageView * imageViewToPutInCell = [[UIImageView alloc] initWithImage: yourImage]; ImageViewToPutInCell.frame = CGRectMake (0, 0, yourImage.size.width / 2, yourImage.size.height / 2);
Comments
Post a Comment