I want to set corner radius to each corner separately, but in layer of the view I didn’t find property or method for it, only for every corner. How can I do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Take a look at this, I think it can be modified to achieve what you want since it rounds the borders using a CGPath: UIView With Rounded Corners
You you could also do it by backing your UIView with a CAShapeLayer and setting the shape on that layer to a path created according to your corner specs.