當我用iPhone:的UITableViewCell:細胞攜帶背景顏色條
self.view.backgroundColor = [UIColor colorWithPatternImage:
[UIImage imageNamed:@"image_name.png"]];
細胞攜帶圖像的底部部分,它看起來像條上視圖
當我用iPhone:的UITableViewCell:細胞攜帶背景顏色條
self.view.backgroundColor = [UIColor colorWithPatternImage:
[UIImage imageNamed:@"image_name.png"]];
細胞攜帶圖像的底部部分,它看起來像條上視圖
使用以下方法來設置單元格的高度準確的同你的形象的高度:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
你也可能要取決於你的圖像看起來像使用下面的代碼刪除分隔符:
MyTableName.separatorStyle = UITableViewCellSeparatorStyleNone;
感謝您的答覆,但它無法正常工作。 cell攜帶背景圖像的底部部分因此看起來像背景色破碎和屏幕上的單元格重疊 – 2010-08-10 13:37:54
請提供您正在使用的背景圖像和應用程序中的表格視圖的屏幕截圖,以便我可以檢查出什麼樣的問題你有 – Marichka 2010-08-12 07:23:32
嘿。你的問題能否更具描述性?你有什麼需要幫助的? – mtrc 2010-08-10 11:32:55
當我添加背景圖像時,我已經告訴過,單元格攜帶背景圖像的底部部分,因此看起來像背景顏色破碎和單元格重疊在屏幕上 謝謝 – 2010-08-10 13:39:25