Franhu
Franhu

Reputation: 63

TouchDragEnter into a UIButton

Is it possible to TouchDown outside a uibutton and then dragInside another UIButton with the UIEventTouchDragEnter or something like that?

I need help with the code. I tried it with imageView but i would appreciate a solutions with buttons!

Thank you!

Franhu

Upvotes: 1

Views: 270

Answers (1)

rob mayoff
rob mayoff

Reputation: 385600

The UITouchDownEvent event must happen inside the button for the button to track the touch. The UITouchDragEnter event means that the touch started inside the button (generating UITouchDownEvent), moved outside the button (generating UITouchDragExitEvent)' then moved back inside the button (generating UITouchDragEnterEvent).

Upvotes: 1

Related Questions