I want to send the keyboard down after writing in textField.
How can I do this?
开发者_开发技巧Any help would be appreciated.
Implement the - (BOOL)textFieldShouldReturn:(UITextField *)textField; delegate method and tell the text field to resign it's first responder status.
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}
STEP-1:
You need to set the delegate of the textField to File's Owner (using interface builder)
or
textField.delegate = self; from the viewController programmatically first
STEP-2:
And you implement the method:
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}
Hope this helps.
- (IBAction)textFieldDoneEditing:(id)sender{ 
    [sender resignFirstResponder]; 
}
connect this to didEndOnExit action of your textfield
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论