使用Swift 3 Info Dark按钮类型单击按钮区域外的区域

时间:2017-07-10 16:27:24

标签: ios swift uibutton xcode8

我的问题是,当使用Swift 3 Xcode 8.3的Info Dark按钮类型时,由于某种原因放在两个ImageView中。即的UIButton / ImageView的/ ImageView的。第一个ImageView的区域大于第二个ImageView(包含信息图像)的区域。

见图:

extra image view with bigger area with Info Dark button type

使用系统按钮类型不是这种情况。

见图:

not extra image view with System button type

如果有人可以帮助澄清,我们将不胜感激。

1 个答案:

答案 0 :(得分:0)

尝试将按钮的剪辑设置为true。

clip to bounds checked

相关问题