V
V
Volodymyr Lavryk2015-07-29 18:29:59
iOS
Volodymyr Lavryk, 2015-07-29 18:29:59

How to add a button to the iOS keyboard?

How can I add a DONE button that will hide the keyboard after typing in the UITextField.
from this:
1*g9ThWoGZUGvPNzpkhE27kQ.png
do this:
1*jGWFUAjCgn9wUn3oV92hzQ.png
Preferably in swift.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Tikhonov, 2015-07-29
@Vo0ne

Not by standard means.
Solution:
[textField resignFirstResponder];
or
[self.view endEditing:YES];
or
Make custom keyboard via extensions (iOS8+)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question