ios - 自定义UITableViewCell的textLabel字体颜色
高洛峰
高洛峰 2017-04-17 11:15:36
0
1
403

我看应用的情况,UITableViewCell的textLabel的textColor是自动控制的,而且好像是根据backgroundColor来判断的。
这个textLabe的textColor能不能像UITableViewCell的backgorundView和selectBackgroundView的方式来设置

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all (1)
大家讲道理

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 = ...; } ... }
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!