views:

83

answers:

1

Is there an event which will get whether the user has moved his finger outside of the button? Kind of like TouchUpOutside except without the "up" bit.

Like how the iphone keyboard, the letter gets smaller (back to normal) as you move your finger of the letter.

+2  A: 

Use UIControlEventTouchDragExit. You can attach a target and action to the control for that particular control event.

Dave DeLong
Thanks i looked in apples documentqtion and saw that but it seemed the same as UIControlEventTouchDragOutside. What exactly is the difference,
Jonathan
@Jonathan if you're dragging inside and exit the control, then it's `UIControlEventTouchExit`. While you're dragging around outside, it's `UIControlEventTouchDragOutside`. When you re-enter the control, it's `UIControlEventTouchDragEnter`.
Dave DeLong
Thanks but I tried this but it only fires when the finger gets far enough away. They both do similar things except the Exit only fire once wheras the DragOutside fires multiple times while the finger is moving.
Jonathan