iOS小技巧-UITableView去除底部多余的分割线方法以及设置分割线风格和颜色
2015-11-04 16:08
706 查看
iOS的UITableView分割线默认是都会显示的,但实际开发中,需求设计基本上是不需要的,此时可以通过下面的代码去除多余的分割线
//UITableView去除多余的分割线
tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
去除分割线,以及更改分割线的颜色可以通过
//UITableView去除多余的分割线
tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
去除分割线,以及更改分割线的颜色可以通过
//设置分割线style tableView.separatorStyle = UITableViewCellSeparatorStyleNone; //设置分割线颜色 [tableView setSeparatorColor:[UIColor redColor]];
相关文章推荐
- UITableView 实现汽车品牌(demo)
- UITableView 基本使用方法总结
- UITableView一些易混属性和方法
- UITableView的详细讲解
- (转)UITableViewController重要配置方法和Delegate
- UITableView详细用法,UITableView指南,UITableView详细教程
- android给listview设置分割线Divider样式
- 阿里巴巴2015校园招聘前端在线笔试题
- ios隐藏uitableview下面多余的tableview的线条
- 定制UITableViewCell的事件响应处理
- ios关于tableView的重用
- UITableView Plain下的section取消顶部粘连
- IOS UITableView 实现LOL数据展示
- iOS- UITableView
- 仿QQ控件图片下拉放大效果
- 关于UITableView的简单使用
- QQ分组
- 关于SearchaBar的bookMarks(代理方式实现)
- UITableView
- tableviewcell 侧滑删除 点击返回按钮 程序崩溃 [ tableView:canEditRowAtIndexPath:]:message sent to deallocated insta