Thursday, 5 September 2013

UIPicker - Ignore drags/moves but capture touches

UIPicker - Ignore drags/moves but capture touches

I have a rather large (in screen-estate) UIControl that I'm putting into a
UIScrollView. Being a UIControl, it hijacks all touches and any drag that
starts from within the control will not be reflected by the UIScrollView.
This control only needs UIControlEventTouchUpInside, so is there any way
to "only" listen to that event?
My first instinct was to override hitTest:withEvent:, but that doesn't
provide any information on the type of control event.
My last resort is to make it a generic UIView, but I'd rather not go down
that road if possible.

No comments:

Post a Comment