tableView 自定义分隔线
来源:互联网 发布:淘宝津贴为什么满 编辑:程序博客网 时间:2024/05/01 05:22
// 分割线 View
UIView *lineLabel = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableviewWith, 0.5)];
lineLabel.backgroundColor = HEADER_LINE_COLOR;
[headview addSubview:lineLabel];
分割线应该使用 view ,view的高度可 为1, label 至少为2。
修改系统自动 cell 分割线
- (void) setTableview {
// 隐藏cell分割线
// self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
// 改变iOS7 tableView的分割线长、颜色
if ([self.tableViewrespondsToSelector:@selector(setSeparatorInset:)]) {
// cell分隔线距离左边边距 space
CGFloat space =ViewWidth * 25.0f /750.0f;
[self.tableViewsetSeparatorInset:UIEdgeInsetsMake(0.0, space,0.0, 0.0)];
// cell分隔线的颜色
// [self.tableView setSeparatorColor:ColorWithRGBA(18.0, 18.0, 18.0, 10.0)];
}
}
0 0
- tableView 自定义分隔线
- IOS补全tableview分隔线
- 去掉TableView最后一个Cell的分隔线
- 自定义tableView
- iOS开发中tableview中cell分隔线与左右的距离
- 初学者-android开发-listview 分隔线问题 及自定义item
- UITableView 分隔线的自定义方法(可自定义分隔线的颜色 粗细 与屏幕边缘的距离)
- 自定义tableview的内容
- 自定义tableview的内容
- 自定义tableview的内容
- TableView自定义背景颜色
- 自定义的tableView 索引
- 自定义简单的TableView
- iOS tableview viewForHeaderInSection 自定义
- tableView 自定义分割线
- tableView自定义cell
- 自定义tableView视图
- 自定义tableview的footerview
- HAUT 1261 地狱飞龙(数值积分)(河南工业大学2017校赛)
- 从零写一个GAN
- 安卓 每隔一段时间执行一次操作
- 设置短信验证码动态计时器
- #ifndef/#define/#endif使用详解
- tableView 自定义分隔线
- spark部署模式解析
- SQL Server存储过程分页
- h5网页检测手机是否安装了app。
- Detection:SSD(single shot multibox detecter)
- Linux Vi或VIM的插入,定位,搜索,复制、粘贴、删除、取消和替换
- phoenix修改表名
- myeclipse(struts2+spring3+hibernate3)
- 你会做软件需求分析吗?