When we enter a character in the text box, it includes a return key. But in our requirement, we need to include a return key when the length is greater than 5. But now, as soon as we enter the character, it activates the return key. Do I need to customize the keyboard or is there any other solution. Thanks in advance.
Well, I think you should handle it in a UITextField UITextField :
UITextField
- (BOOL) textFieldShouldReturn:(UITextField*) textField { return textField.text.length > 0; }
Source: https://habr.com/ru/post/1242813/More articles:JSON decoding on an empty string behaves differently with PHP 7 - jsonUnable to read property "_currentElement" null - reactjsHow can I enable / disable the Return Key keyboard manually in Swift? - iosPyQt5: Gtk-CRITICAL **: IA__gtk_widget_style_get: statement "GTK_IS_WIDGET (widget)" failed - pythonAnaconda cannot import packages like numpy, scipy, theano, etc. - pythonIs there a way to run the code when sending a local notification? - iosIs it really "final"? - javaHow can I name other Google APIs from the cloud function? - google-cloud-platformEnable and disable on-demand keyboard return key on iOS - iosPrefix the word to the list serial number - htmlAll Articles