随笔分类 - view
摘要:有时候layer.cornerRadius并不能满足需求,自己实现drawRect又太麻烦,怎么办?多的不说,直接上代码:- (void)dwMakeBottomRoundCornerWithRadius:(CGFloat)radius{ CGSize size = self.frame.size; CAShapeLayer *shapeLayer = [CAShapeLayer layer]; [shapeLayer setFillColor:[[UIColor whiteColor] CGColor]]; CGMutablePathRef path = CG...
阅读全文

浙公网安备 33010602011771号