我設置background image
爲UITableViewCell
它工作正常,但它拉伸圖像我不想拉伸圖像,我希望圖像應該在單元格中的大小相同,所以我認爲細胞大小應該是相同表視圖細胞圖像拉伸在ipad
這裏是細胞圖像的代碼
cell.backgroundView = [[[UIImageView alloc] initWithImage:[[UIImage imageNamed:@"1.png"] stretchableImageWithLeftCapWidth:0.0 topCapHeight:5.0]]autorelease];
我的圖像尺寸是「275(寬)×59(高度)」。
任何想法如何解決這個問題。
沒有工作這麼 –