Iya
Iya

Reputation: 67

Resizing image view in table cell iphone

I am developing an iPhone app where downloading a high quality image from my app server. I am required to resize it to half its size and display it in the table cell. Could anyone help me to find which functions I could use?

Appreciate your suggestions!

Upvotes: 1

Views: 8502

Answers (1)

Brad The App Guy
Brad The App Guy

Reputation: 16275

UIImage *yourImage = [UIImage imageWithData:yourdata];
UIImageView *imageViewToPutInCell = [[UIImageView alloc] initWithImage:yourImage];
imageViewToPutInCell.frame = CGRectMake(0, 0, yourImage.size.width / 2, yourImage.size.height / 2);

Upvotes: 3

Related Questions