iphone中的表视图属性 [英] Table view property in iphone
本文介绍了iphone中的表视图属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在iphone中更改tableview中每行文本的颜色?有人知道吗?那么请给我指导。
How to change the colour of text of each row in tableview in iphone? Anyone know about it? Then Please give me the guidance.
提前致谢。
推荐答案
基本上你需要做的是 tableView中的以下内容:CellForRowAtIndexPath:
方法
Basically what you would need to do is the following in the tableView:CellForRowAtIndexPath:
method
cell.textLabel.textColor = yourColor;
如果您想了解有关使用自定义单元格的更多信息,可以查看我的博客有效流动性
If you want more info on using custom cells you can check out my blog Effective Mobility
这篇关于iphone中的表视图属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文