我可以在一行中添加多个控件事件的选择器吗?
类似于 [_recordButton addTarget:self actionselector(myaction forControlEvents[UIControlEventTouchDragExit,UIControlEventTouchUpInside]];
Best Answer-推荐答案 strong>
控制事件是位标志:
[_recordButton addTarget:self actionselector(myaction forControlEvents:UIControlEventTouchDragExit|UIControlEventTouchUpInside];
关于ios - 为多个控件事件 UIButton 添加选择器,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/24042409/
|