On Mon, 07 Nov 2011 17:32:46 +0100, Olivier Palliere 
<oliv...@sunprotectingfactory.com> said:
>I have a UITextField on a view. I want the user to be able to edit it by 
>single tapping on it, but I want to display a popover to chose from a list 
>when the user does a long press on the UITextfield.
>
>To do this, I added a LongPressGestureRecognizer on it and implemented the 
>delegate in my controller. 
>
>Now it works fine when I start my app, and I do a long press on the 
>UITextfield until I edit it once. When I have edited my field using a single 
>tap, if I try to do again a long press gesture, then my recognizer is ignored, 
>the UITextField enters edit mode and the magnifying glass is shown.

But surely the real problem is that you're doing something you're not supposed 
to do. A text field already gives a meaning to a long press (selection), and 
now you're trying to disrupt that.

I recommend you show a menu item instead, which the user can tap to show the 
list. Or some other alternate interface. *Use* the framework (by letting the 
framework use you) - don't fight it. m.

--
matt neuburg, phd = m...@tidbits.com, <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 (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

Reply via email to