Search code examples
ioscocoa-touchuikit

How can you make a UIView with rounded top corners and square bottom corners


I am trying to get a view with rounded top corners and square bottom corners, similar to the top row of a grouped UITableViewCell.

Anyone one know an easy way to draw it and not use a background image?


Solution

  • I read this post a while ago:

    Just two rounded corners?

    and also this follow-up post:

    Round two corners in UIView

    I think these should answer your question.