TouchesMoved with Button?

前端 未结 2 609
长发绾君心
长发绾君心 2021-01-25 06:50

Is it possible to use the touchesMoved function with buttons instead of UIImageViews?

2条回答
  •  终归单人心
    2021-01-25 07:11

    You could certainly find the 'view' that is currently being touch event is dragging over even if it is a button. You could also use the 'touch drag enter' connection for buttons in the Interface Builder. Look at the connections tab by pressing cmd+2 when having selected a button.

提交回复
热议问题