• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting a delegate on a UITextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:02:36 -0800 (PST)

On Sat, 05 Mar 2011 11:22:46 -0800 Matt Neuburg wrote:
> One possible approach on iOS is to implement textFieldShouldEndEditing, and
>return NO and put up an alert if there's a problem. Another is just to make the
>change yourself in textFieldDidEndEditing. See the section entitled "Validating
>Entered Text" (along with the preceding section) in the "Managing Text Fields
>and Text Views" chapter of the Text, Web, and Editing Programming Guide for iOS.
>
That looks like a good fit. But is there some trick in
getting textFieldShouldEndEditing invoked? I have also
a textFieldDidBeginEditing and a textFieldDidEndEditing method; they get invoked
when
the user touches the "Return" key on the keypad, but textFieldShouldEndEditing
does not.



_______________________________________________

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

References: 
 >Setting a delegate on a UITextField (From: Jon Sigman <email@hidden>)
 >Re: Setting a delegate on a UITextField (From: Phillip Mills <email@hidden>)
 >Re: Setting a delegate on a UITextField (From: Jon Sigman <email@hidden>)
 >Re: Setting a delegate on a UITextField (From: Jon Sigman <email@hidden>)

  • Prev by Date: Re: binding relationship to checkbox
  • Next by Date: Re: XML Namespace Definitions on Non-Root Elements
  • Previous by thread: Re: Setting a delegate on a UITextField
  • Next by thread: Re: Setting a delegate on a UITextField
  • Index(es):
    • Date
    • Thread