如何在圆形xCode中制作按钮

时间:2017-04-14 06:54:16

标签: ios swift xcode uiview xcode8

我的英语很糟糕我很抱歉,如果这个问题已在其他地方得到解答,我找不到答案。 我将这个圆圈作为一个按钮,但我希​​望它在圆圈外面轻敲时不会被识别为水龙头。 有没有办法做到这一点? click here The circle button (I don't want the tap to be recognized when its tapped on the 'x'ed)

谢谢 我得到了它的工作谢谢你!

1 个答案:

答案 0 :(得分:-1)

button.cornerRadius = button.bounds.width / 2

button.clipsToBounds = true

相关问题