Getting a UITextview to accept a double tap
Getting a UITextview to accept a double tap
- Subject: Getting a UITextview to accept a double tap
- From: Donald Hall <email@hidden>
- Date: Fri, 23 Sep 2011 23:51:17 -0600
I have a subclass of UITextview that I want to recognize a double
tap, and then to pass the event onto the controller of its superview.
(The superview's controller is a subclass of UIViewController.) The
responder chain works as expected, however, the tap count does not.
I have tried using touchesBegan, touchesEnded, and a tap gesture
recognizer. Double taps simply aren't recognized. When I check the
tap count in my text view, it is never 2 when I double tap, always 1.
(To be clear, there are not two events with a tap count of 1, just
one event.) However if I triple tap, the tap count shows as 3, just
like it should. This is for the iPhone 4.2 Simulator. For both the
iPad 4.2 Simulator, and an actual iPad, triple taps are not
recognized either, but quadruple taps are.
Does anyone know what I can do to recognize double taps? I suspect it
is something to do with the text view being a subclass of
UIScrollView.
Thanks for any pointers. I have searched this list to no avail, and I
have tried a few things from a general web search.
Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden