如何制作带圆角顶角和方角底角的UIView [英] How can you make a UIView with rounded top corners and square bottom corners
本文介绍了如何制作带圆角顶角和方角底角的UIView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图获得一个带圆角顶角和方形底角的视图,类似于分组UITableViewCell的顶行。
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?
推荐答案
我刚读过这篇文章:
以及此后续帖子:
Round two corners in UIView
我认为这些应该回答你的问题。
I think these should answer your question.
这篇关于如何制作带圆角顶角和方角底角的UIView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文