当我用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