使用笔尖的 UITableViewCell 背景颜色
在 Xcode 中,我有 UITableViewCell 笔尖,其中包含一个标签,并且在笔尖中我为 UITableViewCell 背景和标签文本背景颜色自定义了颜色。 当表格显示时,标签的文本以指定的颜色显示,但单元格的背景颜色不显示;相反,UITableView 笔尖的背景颜色显示为每个单元格的背景。 为什么?单元格背景颜色属性是否在某些时候被忽略或覆盖?
In Xcode, I have UITableViewCell nib which holds a label, and in the nib I customized colors for both the UITableViewCell background and the label text background color.
When the table displays, the label's text displays in the specified color, but the cell's background color does not; rather the background color of the UITableView nib is what shows as each cell's background.
Why? Is the cell background color attribute being ignored or overridden at some point?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://pegolon.wordpress.com/ 2008/11/15/using-uitableviewcell-with-interfacebuilder/
无法在IB中设置UITableViewCell的背景颜色
也许这些链接会对您有所帮助
http://pegolon.wordpress.com/2008/11/15/using-uitableviewcell-with-interfacebuilder/
Can't set background color of UITableViewCell in IB
May be these link will help you