Round Top Corners of a UIButton in Swift

前端 未结 10 1934
情深已故
情深已故 2020-11-27 16:33

I know I can round all four corners using:

 myBtn.layer.cornerRadius = 8
 myBtn.layer.masksToBounds = true

Since I only want to round two,

10条回答
提交回复
热议问题