D
D
dimib2014-08-28 13:57:39
iOS
dimib, 2014-08-28 13:57:39

How to open the keyboard immediately after switching to a specific ViewController?

Good day.
A TextField is set on a certain ViewController. I would like the keyboard to open when switching to this ViewController.
Most likely, you just need to set the cursor, then the keyboard will open. But how to set the cursor?
And, if possible, show me where to read about changing the keyboard (for example, how to add a blue "Done" button, like in Instagram).
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Morozov, 2014-08-28
@morozovdenis

myTextField.returnKeyType = UIReturnKeyDone;
[myTextField becomeFirstResponder];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question