开发者

Corner radius for a particular corner

开发者 https://www.devze.com 2023-03-08 15:35 出处:网络
I want to set corner radius to each corner separately, but in layer of the view I didn开发者_C百科\'t find property or method for it, only for every corner. How can I do it?Take a look at this, I thin

I want to set corner radius to each corner separately, but in layer of the view I didn开发者_C百科'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.

0

精彩评论

暂无评论...
验证码 换一张
取 消