skip to Main Content

How to change the TopLeft and TopRight corners of UIView to round corner? – Photoshop

I want to use round corner style in my UIView, and here is my code: UIBezierPath *maskPath1 = [UIBezierPath bezierPathWithRoundedRect:self.styleView1.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(4, 4)]; CAShapeLayer *maskLayer1 = [[CAShapeLayer alloc] init]; maskLayer1.frame = self.styleView1.bounds; maskLayer1.path = maskPath1.CGPath; self.styleView1.layer.borderWidth = 1;…

VIEW QUESTION
Back To Top
Search