【发布时间】:2013-10-13 07:07:15
【问题描述】:
在我的 tableView 中,我在单元格之间设置了分隔线。我允许选择多个单元格。这是我设置选定单元格背景颜色的代码:
UIView *cellBackgroundColorView = [[UIView alloc] initWithFrame:cell.frame];
[cellBackgroundColorView setBackgroundColor:[UIColor darkGray]];
[cell setSelectedBackgroundView:cellBackgroundColorView];
问题是如果两个相邻的单元格被选中,在iOS7中它们之间没有分隔线,而在iOS6中(如预期的那样)。
我什至尝试将cellBackgroundColorView 的帧高度设置为cell.frame - 1.0,但这也不起作用。
有什么想法吗?
【问题讨论】:
标签: uitableview ios7