开发者

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!


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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜