开发者

Is there a way to have just one rounded corner on a UIButton?

On a UIButton, I know how to create 4 rounded corners, and 开发者_开发问答I know how to create 4 squared corners, but now what I need is a way to create a UIButton with 3 squared corners and 1 rounded corner. Is there a way to do that? Thanks.


Yes, you can do this. You just need to modify the code slightly from the following posts:

Just two rounded corners?

Round two corners in UIView

You can also hack this by rounding all corners of one UIView and then adding two other UIViews on top to "unround" the top two and left two corners, leaving just the lower right corner rounded.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜