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?
Since
UITextViewinherits fromUIResponder(indirectly, it actually inherits fromUIScrollView, which inherits fromUIViewwhich then inherits fromUIResponder) you can call the-becomeFirstRespondermethod on your text field, which will cause it to become the first responder and begin editing: