Re: UITextField and UIGestureRecognizers
Re: UITextField and UIGestureRecognizers
- Subject: Re: UITextField and UIGestureRecognizers
- From: Matt Neuburg <email@hidden>
- Date: Fri, 11 Nov 2011 09:51:29 -0800
On Fri, 11 Nov 2011 11:17:17 +0100, Olivier Palliere <email@hidden> said:
>
>Yeah I know it sounds like this is against the framework, but I eventually got it reading the doc and poking around the web. Basically the UITextField's gesture recognizers are reseted to a default value every time it's being edited. So you need to setup your own custom recognizer every time the field is edited.
>
>All legit
I'm not sure I agree. The very fact that "you need to setup your own custom recognizer every time the field is edited" is a sign that you are fighting the framework. This means that your approach is fragile and highly implementation-dependent. I would suggest that you should go with things that are documented. m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook_______________________________________________
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