我看應用的情況,UITableViewCell的textLabel的textColor是自動控制的,而且好像是根據backgroundColor來判斷的。這個textLabe的textColor能不能像UITableViewCell的backgorundView和selectBackgroundView的方式來設置
1 回答

侃侃無極
TA貢獻2051條經驗 獲得超10個贊
cell的textLabel是可以自定義textColor,還有highlightedTextColor,這就是兩種狀態。
// Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if(0 == indexPath.row) { cell.textLabel.textColor = ...; cell.textLabel.highlightedTextColor = ...; } ... }
- 1 回答
- 0 關注
- 174 瀏覽
添加回答
舉報
0/150
提交
取消