iphone - 表格单元格颜色不适用于披露指示器后面
我有一个表格视图,它具有替代颜色作为单元格的背景颜色。 除此之外,我还添加了一个披露指示器配件。 然而,问题是单元格背景颜色似乎不适用于披露指示器“后面”的区域。 在公开指示符出现在表格单元格右端之前,单元格背景颜色似乎被截断。
I have a table view that has alternate colors as background color for cells.
In addition to that i have added a disclosure indicator accessory.
However, the problem is that the cell background color doesnt seem to apply to the area 'behind' the disclosure indicator. The cell background color seems to truncate before the disclosure indicator appears at the right end of the table cell.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有类似的问题。 发生这种情况似乎是因为表中的每一行都分为几个部分。 因此,仅更改 cell.BackgroundColor 不会更改整个行的颜色。
尝试类似的东西..它对我有用:
I had a similar problem. This seems to happen because each row in a table is divided into several parts. So merely changing cell.BackgroundColor isn't going to change the entire rows color.
Try something similar to this.. It worked for me: