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.
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.
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.