I wanted to change the name of the return button key as I'm not developing the app in English. I'm having an UIAlertController
and added a textField (.addTextFieldWithConfigurationHandler { (textField) -> Void in <someCode> }
). How can I now change the title of the return button key in Swift? Actually there shouldn't be any difference to a normal UITextField
. Thank for any help :]
You cannot set custom text for the return key on iOS. There are a number of options but those are the only ones.
If you are only worried about translation, the keys will be translated automatically depending on the language that is configured on the users device. Otherwise, you are going to have to create an entirely custom keyboard (which is almost certainly not worth the effort).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With