我想为这样的按钮做2个动作。 选择并取消选择1个按钮的动作。我们可以用2个动作制作1个UIButton吗?
@IBAction func btntouch(sender: UIButton) {
if firsttouch
{
print bla bla
change button to selected style. maybe background color.
}
else
{
}
}
我该怎么做?
您的条件是什么? –
看看touchDown事件,但不确定是否可以使用相同的方法。 – GoodSp33d