I have two text fields. I use this code in textFieldDidBeginEditing, but it does not drop the keyboard.
textFieldDidBeginEditing
-(void)textFieldDidBeginEditing:(UITextField *)textField { if(textField==textFieldOne) { } else if (textField==textFieldTwo) { [[IQKeyboardManager sharedManager]resignFirstResponder] } }
It may help to try.
-(void)textFieldDidBeginEditing:(UITextField *)textField { if(textField==textFieldOne) { } else if (textField==textFieldTwo) { [self.view endEditing:YES]; } }
Source: https://habr.com/ru/post/1606711/More articles:How can I show data from a specific month mysql - phpCustomizing your AWS api domain - elastic-beanstalkSetting cookies for subdomain - spring-bootQuoting through an HTML table and saving td values as a string using jquery / javascript - javascriptDetermine if gravatar will return the default image using javascript - javascriptwatchOS2 how to set companion settings icon - iosBuild a website with jquery and angularjs - javascriptAngularjs corner table not working for dynamic data - javascriptOptimizing nested loops in cython: is there a faster way to customize this sample code? - performanceActive boot button and target style not working - cssAll Articles