选择按钮时的奇怪行iOS

时间:2015-08-20 12:16:05

标签: ios image uibutton uiimage

我有不同的按钮,每个按钮都有一个自定义图像。

当我按下它们时,我将状态更改为“已选择”并且图像更改成功,但按钮旁边显示一条奇怪的蓝线。

如何删除它?

选择之前:enter image description here

选择后:enter image description here

[更新]

按钮的xib是:

def ignore_dash_match(s1, s2):
    return all(c1 == c2 for c1, c2 in zip(dash_to_Any(s1), dash_to_Any(s2)))

代码:

<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0ob-Gu-D9L" userLabel="Xat">
                <rect key="frame" x="976" y="0.0" width="46" height="46"/>
                <state key="normal" title="Xat">
                    <color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
                </state>
            </button>

0 个答案:

没有答案