24 Jun 2017

UIBezierPath to make curved corners ...


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

Recent Posts

Codable demo

Link: https://www.dropbox.com/s/kw7c1kgv1628bh7/codableDemo.zip?dl=0