0
我創造了我UITableViewCellStyleDefault風格的小區,並設置其背景圖片:UITableViewCell的背景圖片不好看
cell.backgroundView = imgView;
和它的作品,但在單元格中的文本的背景仍然是white.So它隱藏部分backgroundView。 我曾嘗試過:
cell.textLabel.backgroundColor = [UIColor clearColor];
cell.contentView.backgroundColor = [UIColor clearColor];
cell.textLabel.opaque = NO;
但他們都沒有工作。
此外用於backgroundView的圖像具有透明部分,但在單元格中沒有。 我想知道我錯過了什麼。
在此先感謝。
謝謝,這解決了這個問題,我仍然不知道里面設置了的tableView背景色:cellForIndexAtIndexPath:方法是行不通的。 – nacho4d 2010-09-13 16:25:28