How to set cornerRadius for only top-left and top-right corner of a UIView?

后端 未结 26 3320
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 06:14

Is there a way to set cornerRadius for only top-left and top-right corner of a UIView?

I tried the following, but it end up not seeing the

26条回答
  •  不要未来只要你来
    2020-11-22 06:49

    If you're looking for an interface builder only solution there is one for iOS 11 and higher. See my answer here: https://stackoverflow.com/a/58626264

提交回复
热议问题