我看应用的情况,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 关注
- 239 浏览
添加回答
举报
0/150
提交
取消
