* 重新绘制UITableViewCell线的方法
2016-01-26 16:39
489 查看
/**
* 重新绘制Cell线
*
*/
-(void)drawRect:(CGRect)rect
{
CGContextRef ctx=UIGraphicsGetCurrentContext();
CGContextSetLineWidth(ctx,0.25);
CGContextSetLineCap(ctx, kCGLineCapRound);
CGContextSetStrokeColorWithColor(ctx,[UIColor lightGrayColor].CGColor);
CGContextMoveToPoint(ctx,0,rect.size.height-0.25);
CGContextAddLineToPoint(ctx,rect.size.width,rect.size.height-0.25);
CGContextStrokePath(ctx);
[super drawRect:rect];
}
* 重新绘制Cell线
*
*/
-(void)drawRect:(CGRect)rect
{
CGContextRef ctx=UIGraphicsGetCurrentContext();
CGContextSetLineWidth(ctx,0.25);
CGContextSetLineCap(ctx, kCGLineCapRound);
CGContextSetStrokeColorWithColor(ctx,[UIColor lightGrayColor].CGColor);
CGContextMoveToPoint(ctx,0,rect.size.height-0.25);
CGContextAddLineToPoint(ctx,rect.size.width,rect.size.height-0.25);
CGContextStrokePath(ctx);
[super drawRect:rect];
}
相关文章推荐
- UITextView设置输入个数限制
- Java控制语句——break和continue
- UILabel详解
- ios界面UICollectionView
- 一台安装5.5与5.6报unknown variable 'log-slow-queries=/home/mysql/localhost-slow.log' 错解决方案...
- 一台安装5.5与5.6报unknown variable 'log-slow-queries=/home/mysql/localhost-slow.log' 错解决方案
- 38.Which two statements are true regarding views? (Choose two.)
- [leetcode] 63. Unique Paths II
- .NET中的Queue和Stack
- Duilib初级控件扩展一例: 具有鼠标滚动消息的OptionUI
- 怎样在UICollectionView中添加Header和footer
- soupUI导出webservice服务端
- Kconfig、Kbuild Makefile
- 37.You issued the following command to drop the PRODUCTS table:
- (转)UEFI小结-Handle的来龙去脉
- poj3481double queue【treap树入门题】
- IOS 将十六进制RGB颜色值转换为UIColor
- // 去掉UItableview headerview黏性(sticky) - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
- soupUI导出webservice客户端
- ios9 之后,Xcode7不推荐使用UIAlertView,改用UIAlertController+UIAlertAction(按钮)