标签:ios ios开发 uitableviewcell
//去掉底部多余的表格线
[tableView setTableFooterView:[[UIView alloc] initWithFrame:CGRectZero]];
//最后一行分隔线顶头显示
//http://stackoverflow.com/questions/25770119/ios-8-uitableview-separator-inset-0-not-working
static void setLastCellSeperatorToLeft(UITableViewCell*
cell)
{
if ([cell respondsToSelector:@selector(setSeparatorInset:)])
{
[cell setSeparatorInset:UIEdgeInsetsZero];
}
if ([cell respondsToSelector:@selector(setLayoutMargins:)])
{
[cell setLayoutMargins:UIEdgeInsetsZero];
}
if([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]){
[cell setPreservesSuperviewLayoutMargins:NO];
}
}
版权声明:本文为博主原创文章,未经博主允许不得转载。
cell去掉底部多余的表格线
标签:ios ios开发 uitableviewcell
原文地址:http://blog.csdn.net/yangchen9931/article/details/47121533