2013-02-22 83 views
0

所以我有索引標題視圖討厭我看到這一點:enter image description here的UITableView設置IndexTitleView清除顏色

而子類UITableViewCell的代碼:

self.contentView.backgroundColor = [UIColor blackColor]; 

該死的指標顯示上方的單元格我想設置其backgroundColor clearColor,所以我可以用黑色填充我的細胞!

非常感謝你:)

編輯:HUM更清晰,這是UITableViewCell的,因爲我有幾節,我有,我可以摸帶我去的部分權指數,看右邊的小1我希望它的視圖有一個clearColor作爲背景顏色,所以單元格將顯示爲完全充滿黑色!

+0

你可以使你的問題陳述簡單明瞭嗎?這將有利於我們幫助你。 – yunas 2013-02-22 22:59:51

+0

你有沒有嘗試改變self.backgroundColor而不是contenView.backgroundColor? – Ares 2013-02-22 23:05:57

+0

可悲的是同樣的結果:/ – ItsASecret 2013-02-22 23:08:09

回答

2

設置一個普通的表的背景顏色是簡單:

self.tableView.backgroundColor = [UIColor blackColor]; 

沒有必要設置細胞或它的內容查看的背景色。

0

將tableview的背景也設置爲黑色。