2010-09-13 26 views
0

我創造了我UITableViewCellStyleDefault風格的小區,並設置其背景圖片:UITableViewCell的背景圖片不好看

cell.backgroundView = imgView; 

和它的作品,但在單元格中的文本的背景仍然是white.So它隱藏部分backgroundView。 我曾嘗試過:

cell.textLabel.backgroundColor = [UIColor clearColor]; 
cell.contentView.backgroundColor = [UIColor clearColor]; 
cell.textLabel.opaque = NO; 

但他們都沒有工作。

此外用於backgroundView的圖像具有透明部分,但在單元格中沒有。 我想知道我錯過了什麼。

在此先感謝。

回答