我正在定制一个UITableView.我想隐藏最后一个单元格上的分隔线...我可以这样做吗?
我知道我可以做tableView.separatorStyle = UITableViewCellStyle.None但这会影响tableView的所有单元格.我希望它只影响我的最后一个细胞.
我已经将UITableView控件子类化,并且样式已分组,但我不需要单元格分隔符.我尝试将我的表视图的separatorStyle设置为none,但它不起作用.谁能帮我吗?
我正在尝试删除一个分隔符UITableViewCell.我做了以下事情:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell;
cell = [super tableView:tableView cellForRowAtIndexPath:indexPath];
if (indexPath.row == 1)
cell.separatorInset = UIEdgeInsetsZero;
return cell;
}
Run Code Online (Sandbox Code Playgroud)
(是的static cells.)当我运行应用程序时.分隔线仍在那里.如何删除分隔线cell?