Re: Setting a delegate on a UITextField
Re: Setting a delegate on a UITextField
- Subject: Re: Setting a delegate on a UITextField
- From: Jon Sigman <email@hidden>
- Date: Mon, 07 Mar 2011 09:54:32 -0800 (PST)
On Mon, March 7, 2011 9:30:05 AM Matt Neuburg wrote:
> The "Return" key invokes textFieldShouldReturn: and does *not* automatically
>resign first responder ...
Ah! That is the part I had been overlooking. textFieldShouldReturn is the
perfect place to validate the input.
However, now that I've implemented it, textFieldShouldReturn gets called twice
immediately when the "Return" key gets pressed on the keypad, not sure why...
Thanks!
_______________________________________________
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