sobri909 / MGBoxKit

Simple, quick iOS tables, grids, and more
Other
1.79k stars 282 forks source link

Box.onLongPress gets called twice #147

Open halpz opened 9 years ago

halpz commented 9 years ago

When I put a longpress handler on an MGBox - it gets called twice

iNono22 commented 8 years ago

@halpz It gets called twice probably one time when the gesture start being detected UIGestureRecognizerStateBegan and when it is finished UIGestureRecognizerStateEnded

Make sure to implement the UIGestureRecognizerDelegate and verify the: gestureRecognizer.state == UIGestureRecognizerStateEnded OR UIGestureRecognizerStateBegan One of the two only