How do I set the firstresponder?

Viewed 21363

I have a view built through IB, there's a text view and and button on it. When the view shows up I would like to have the keyboard to be already displayed.

I tried to set the first responder in the didViewLoad but that didn't work.

I do have an IBOutlet that is connected to the textView and related accessor.

3 Answers

For Swift

textView.becomeFirstResponder()
Related