Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I make a container view to have corner radius only in some corners? #371

Open
jdev7 opened this issue Apr 21, 2017 · 0 comments
Open

Comments

@jdev7
Copy link

jdev7 commented Apr 21, 2017

I can make the UIView to have a corner-radius, and it makes all the 4 corners rounded...

But how can I make only top-left and top-right corners to be rounded?

This is is the best that I´ve come up to:

image

using corners: 1 1 0 0;

And I don´t know why, it cuts the view leaving empty a lot of free space to the right...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant