您的位置:首页 > 产品设计 > UI/UE

UITableView 分割线设置 (去掉底部多余的分割线)

2015-04-22 10:59 267 查看

初始化的时候先将footer全部清空



UIView *emtyView = [[UIViewalloc]
initWithFrame:CGRectZero];
[_tableViewsetTableFooterView:emtyView];
_tableView .separatorColor = [UIColorcolorWithWhite:0.115alpha:1];
_tableView .separatorStyle =UITableViewCellSeparatorStyleSingleLine;
// 让分割线前后距离一样
_tableView .separatorInset =UIEdgeInsetsMake(0,0,
0,18);
[_infoViewaddSubview:_tableView ];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: