ios tableview去除指定cell分割线
2017-02-07 11:54
363 查看
方法1: tableview.separatorStyle = UITableViewCellSeparatorStyleNone;然后自定义cell的分割线
方法2: 设置cell的separatorInset cell.separatorInset = UIEdgeInsetsMake(0, MAXFLOAT, 0,0);不显示
当分组情况下,去除分组间的线
设置tableview的style为UITableViewStylePlain
去除头部黏合
方法2: 设置cell的separatorInset cell.separatorInset = UIEdgeInsetsMake(0, MAXFLOAT, 0,0);不显示
当分组情况下,去除分组间的线
设置tableview的style为UITableViewStylePlain
去除头部黏合
- (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = 10; if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) { scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0); } else if (scrollView.contentOffset.y>=sectionHeaderHeight) { scrollView.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, 0, 0); } }
相关文章推荐
- IOS tableView 去除分割线 和 不允许选中表格cell
- iostableView cell默认分割线的去除
- ios tableView cell分割线顶到头处理
- 【iOS 开发】如何去除tableView多余的空Cell
- ios开发技巧之tableView去掉多余的空行分割线 自定义cell分割线
- iOS: TableView如何刷新指定的cell 或section
- iOS隐藏tableview多余的分割线以及解决cell左边短20px
- iOS开发技巧-tableView去掉多余的空行分割线,自定义Cell分割线
- TableView 去掉多余行数、IOS最后一行Cell系统分割线顶头
- iOS TableView如何刷新指定的cell 或section
- ios中去除tableView的分割线
- ios tableView隐藏多余的cell分割线separator
- iOS 关于tableView cell的分割线的一些设置
- ios中去除tableView的分割线
- iOS tableView移除某一行的分割线 让分割线宽度为整个cell的宽度
- iOS tableview cell 去除点击效果 和 选择效果
- iOS: TableView如何刷新指定的cell 或section
- 去除静态tableView假cell的分割线
- TableView 去掉多余行数、IOS最后一行Cell系统分割线顶头
- UITableView 去除指定cell分割线