首页 > 学院 > 开发设计 > 正文

单独设置圆角

2019-11-07 23:26:43
字体:
来源:转载
供稿:网友

UIBezierPath *topmaskPath = [UIBezierPath bezierPathWithRoundedRect:topView.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerToPRight cornerRadii:CGSizeMake(10, 10)];   CAShapeLayer *topmaskLayer = [[CAShapeLayer alloc] init];   topmaskLayer.frame = topView.bounds;   topmaskLayer.path = topmaskPath.CGPath;   topView.layer.mask = topmaskLayer;


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表