创建自定义子类DeleteLineLabel,继承自UILabel,然后在自定义子类DeleteLineLabel中 方法一(上下文): - (void)drawRect:(CGRect)rect { [super drawRect:rect]; CGContextRef ref = UIGraphicsGetCurrentContext(); //绘制起点 CGContextMoveToPoint(, rect.size.height * 0.5); //绘制终点 CGContextAddLi…