如图所示,怎么保持顶部边框两个圆角,而去掉下边框呢?
重写 view 的 draw 方法:
[[UIBezierPath bezierPathWithRoundedRect:bounds
byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight
cornerRadii:6] addClip];
[[UIColor whiteColor] setFill];
贴个背景图可以么