//在此方法之前要讲分割线的style设为none
-(void)drawRect:(CGRect)rect
{
[super drawRect:rect];
CGContextRef cxt = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(cxt, 10);
CGContextSetStrokeColorWithColor(cxt, [UIColor colorWithWhite:0.910 alpha:1.000].CGColor);
CGContextMoveToPoint(cxt, 0.0 , self.frame.size.height - 0.5);
CGContextAddLineToPoint(cxt,self.frame.size.width , self.frame.size.height -0.5);
CGContextStrokePath(cxt);
}
设置cell分割线的高度
最新推荐文章于 2021-01-06 14:23:25 发布