您的位置:首页 > 产品设计 > UI/UE

* 重新绘制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];

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: