2010-07-26 60 views
0

我可以在表格视图单元格中显示BG图片,但是当我点击任何单元格时,会有一个蓝色填充我的所有单元格,并且我的图片现在只是背后现在我想要显示我的图片那蓝色的前面怎么做?在iphone的表格视图中显示bg图片

cell.backgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SuperCell.png"]] autorelease]; 

回答

0

也许你可以使用

cell.selectionStyle = UITableViewCellSelectionStyleNone; 

cell.selectedBackgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SuperCell.png"]] autorelease]; 
+0

非常感谢:) – ram 2010-07-26 14:25:01