开发者

Resizing image view in table cell iphone

开发者 https://www.devze.com 2022-12-08 13:48 出处:网络
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 hel

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!


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

精彩评论

暂无评论...
验证码 换一张
取 消