So I want to bring in a modal view controller that has a UITextView in it and I want the keyboard to automatically popup and the UITextView have focus.
I found a way to accomplish this by doing the following:
textView.editable = YES;
textView.editable = NO;
This just seems hacky to me, is there another way?
Best Solution
Since
UITextView
inherits fromUIResponder
(indirectly, it actually inherits fromUIScrollView
, which inherits fromUIView
which then inherits fromUIResponder
) you can call the-becomeFirstResponder
method on your text field, which will cause it to become the first responder and begin editing: