UIBezierPath to make curved corners ...
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.View.bounds byRoundingCorners:(UIRectCornerBottomLeft | UIRectCornerBottomRight) cornerRadii:CGSizeMake(12.0, 12.0)];
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = self.bView.bounds;
maskLayer.path = maskPath.CGPath;
self.View.layer.mask = maskLayer;
self.View.clipsToBounds = YES;
No comments:
Post a Comment