2009-10-16 124 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

相關問題