【发布时间】:2012-07-31 02:54:00
【问题描述】:
可能重复:
How to customize the background color of a UITableViewCell?
我正在尝试设置单元格的文本颜色,但它不起作用。这是代码..
cell_center.backgroundColor = [UIColor redColor];
cell_center.textLabel.backgroundColor = [UIColor grayColor];
cell_center.selectionStyle = UITableViewCellSelectionStyleGray;
这里的选择样式有效,但文本颜色不受影响。知道我做错了什么吗?
【问题讨论】:
-
@HelmiB 不是那样,我只问了几个问题,我得到了正确答案的一两个问题,剩下的对我没有用。现在在这里它的工作感谢。 :)
标签: iphone objective-c ios xcode