Fer*_*roz -3 iphone xcode objective-c ios
我试图设置单元格的文本颜色,但它不起作用.这是代码..
cell_center.backgroundColor = [UIColor redColor];
cell_center.textLabel.backgroundColor = [UIColor grayColor];
cell_center.selectionStyle = UITableViewCellSelectionStyleGray;
Run Code Online (Sandbox Code Playgroud)
这里的选择样式有效但文本颜色没有影响.知道我做错了什么吗?
设置这样的背景颜色contentView:
[cell_center contentView].backgroundColor = [UIColor redColor];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7365 次 |
| 最近记录: |