UIView_TableView
来源:互联网 发布:知乎 电脑版 编辑:程序博客网 时间:2024/05/22 04:42
1.把自带的cell分割线隐藏
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
2.重写- (void)drawRect:(CGRect)rect方法
- (void)drawRect:(CGRect)rect{ CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor); CGContextFillRect(context, rect); //上分割线, CGContextSetStrokeColorWithColor(context, RGBCOLOR(229, 229, 229).CGColor); CGContextStrokeRect(context, CGRectMake(5, -1, rect.size.width, 1)); //下分割线 CGContextSetStrokeColorWithColor(context, RGBCOLOR(229, 229, 229).CGColor); CGContextStrokeRect(context, CGRectMake(5, rect.size.height, rect.size.width, 1));}
0 0
- UIView_TableView
- UIView_TableView 分割线不全的问题
- IOS菜鸟的所感所思(三)——通过服务器接口获取数据
- 32位和64位处理器各类型字节数比较
- ehcache 简单例子
- Jquery中$(document).ready()与window.onload方法的区别
- 学习java数据结构基础知识之链表
- UIView_TableView
- UISegmentedControl简单使用
- 返回第n个丑数
- iOS零散知识点
- android启动过程及各个镜像间的关系
- 虚拟化平台proxmox集群和HA配置
- org.codehaus.jackson.map.JsonMappingException: No serializer found for class org.hibernate.proxy....
- mybatis从入门到精通
- Opencv interface 中的BaseLOaderCallback