On 11/8/11 10:23 AM, Eric E. Dolecki wrote: > Hi all, > > I'd like to be able to drag my finger around on a UIImageView, and without > lifting the finger have a long press trigger a method of mine. I'd prefer > to use UIGestureRecognizer if possible. > > > Right now the longPress triggers only on a distinct press, not a drag > around and then hold.
As far as I know this behavior cannot be accomplished using only the built-in recognizers. It's easy to require a recognizer to fail before another succeeds, but the inverse is not true. Unless someone has a better suggestion, you will need to create a custom UIGestureRecognizer subclass. By careful design, you can probably use UIPanGestureRecognizer and UILongPressGestureRecognizer internally to minimize the amount of touch-handling code you need to write. -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com