2009-10-16 141 views
1

我正在开发一个iPhone应用程序,从应用程序服务器下载高质量图像。我需要将其大小调整为其大小的一半,并将其显示在表格单元格中。任何人都可以帮助我找到我可以使用哪些功能?调整表格单元格中的图像视图iphone

感谢您的建议!

回答

3
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

它正确调整它..谢谢! – Iya 2009-10-17 10:46:04

相关问题