2010-07-26 55 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