简体   繁体   中英

Corner radius for a particular corner

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM