• 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: UITextField not sending messages to delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITextField not sending messages to delegate


  • Subject: Re: UITextField not sending messages to delegate
  • From: Alexander Spohr <email@hidden>
  • Date: Wed, 6 May 2009 11:21:07 +0200

April,

Am 05.05.2009 um 23:46 schrieb Development:

I have a UITextfield that I have set the delegate for. I have a default keyboard and when you hit the send key (I've set the return to send) nothing happens. I have the - (void)textFieldDone: (id)sender method implemented

What documentation mentions such a method? I can not find it anywhere.
And it looks like an IBAction, not like a delegate-method of UITextFieldDelegate.


but the didendediting notification is never sent and the textFieldDone method is never called. I do not understand what I am doing wrong here but I am hoping some one might be able to help

Implement - (BOOL)textFieldShouldReturn:(UITextField *) aTextField

make [aTextField resignFirstResponder];
and return YES;


atze

_______________________________________________

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: 
 >UITextField not sending messages to delegate (From: Development <email@hidden>)

  • Prev by Date: Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!
  • Next by Date: NSTextView delegate methods in NSTextView subclass.
  • Previous by thread: UITextField not sending messages to delegate
  • Next by thread: Advice for drawing complex, line-based designs
  • Index(es):
    • Date
    • Thread