Re: Dismissing the iPhone keyboard

2009-04-03 Thread Steve Taylor
textFieldDidEndEditing is only triggered once first responder has been resigned by the field. try something like - (BOOL)textFieldShouldReturn:(UITextField *)theTextField { if (theTextField == textField) { [textField resignFirstResponder]; } return YES; } where textField i

Re: Dismissing the iPhone keyboard

2009-04-03 Thread Bertil Holmberg
I think you are using this in the wrong order; "This method [textFieldDidEndEditing:] is called after the text field resigns its first responder status." How do you move the cursor outside the text field? Dave Mark handles this in his excellent book by using an invisible background view th

Re: Dismissing the iPhone keyboard

2009-04-03 Thread Development
Thanks for the responses I see now that i had not hooked the end on exit method. On Apr 3, 2009, at 5:49 AM, Development wrote: How do I dismiss the keyboard from a UITextView when the cursor is moved out? ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Dismissing the iPhone keyboard

2009-04-03 Thread Brian Slick
Do you have: @interface YourViewController : UIViewController ^ ...in your header file? Oh, just glanced at my own code, and I'm using this when the text field gets created: [textField addTarget:self action:@selector(tex

Re: Dismissing the iPhone keyboard

2009-04-03 Thread Eric E. Dolecki
You have that method hooked to the UITextField's DidEndOnExit? E. On Fri, Apr 3, 2009 at 9:30 AM, Development wrote: > I'm using > > - (void)textFieldDidEndEditing:(UITextField *)textField > { > >[textField resignFirstResponder]; > } > > and the matching method for the textview > > I have

Re: Dismissing the iPhone keyboard

2009-04-03 Thread Development
I'm using - (void)textFieldDidEndEditing:(UITextField *)textField { [textField resignFirstResponder]; } and the matching method for the textview I have set the delegate in IB and yet the note is never sent. I can't figure out what I'm doing wrong. On Apr 3, 2009, at 6:24 AM, Dave De

Re: Dismissing the iPhone keyboard

2009-04-03 Thread Dave DeLong
Have the UITextfield resignFirstResponder. The keyboard goes away when an editable element loses first responder status. Dave On Apr 3, 2009, at 6:49 AM, Development wrote: How do I dismiss the keyboard from a UITextView when the cursor is moved out? __