从目标行动的UIButton多动作去掉“一个”行动(remove “one” action from

2019-10-18 05:00发布

[_btt1 addTarget:self action:@selector(clicked:) forControlEvents:UIControlEventTouchUpInside];
[_btt1 addTarget:self action:@selector(clicked2:) forControlEvents:UIControlEventTouchUpInside];

有在_btt1 2分的动作。

2013-05-31 10:33:31.300 testTargetAndSelector[6029:c07] actions : (
    "clicked:",
    "clicked2:"
)

我删除这样clicked2行动。

[_btt1 removeTarget:self action:@selector(clicked2:) forControlEvents:UIControlEventTouchUpInside];

但在_btt1没有动作。

2013-05-31 10:33:32.731 testTargetAndSelector[6029:c07] actions : (null)

我怎样才能把多单操作动作?

文章来源: remove “one” action from multi actions in target-action UIbutton