How to add custom key to keyboard in ios?

I want to add a user key to my keyboard. (key .com) When the user begins to enter an email text field, this key should appear with the key. I used keyboard type email. But that does not give this key. How can I add this key to my keyboard.

thanks

+6
source share
5 answers

Here is a tutorial to help you add custom buttons to your ios keyboard!

adding-custom-buttons-to-ios-keyboard

+3
source

A .com key is added when using a keyboard such as URL: KeyboardManagement

You can also use the inputAccessoryView of the text field, add a UIToolbar to it, and on the toolbar you can add several buttons that you want, including a custom .com button.

+2
source

There is no way you could change default keyboard . and if you modify it in any way (using private methods), Apple will reject your application because it contradicts Apple’s recommendations.

Thus, the only solution to your problem is to create a custom keyboard and then use it. There are several custom keyboards that you can use as well:

Hope this helps you.

+1
source

Look at this: custom keyboard

Integrate one of them into your project and configure it accordingly. Hope this helps get started ...

0
source

You cannot change the default keyboard of Apple.

But you can choose the keyboard type for UITextField or UITextView by setting some properties in the UITextInputTraits protocol. Using email, set to:

 [textView setKeyboardType:UIKeyboardTypeEmailAddress]; 

You can use inputAccessoryView to add some custom keys, see dmforminputaccessoryview

The final parameter is to create a new keyboard (subclass of UIView) and set it to inputView UITextView or UITextFied : Custom-iOS-Keyboards

0
source

Source: https://habr.com/ru/post/946234/


All Articles