Tim Hirsch
Tim Hirsch

Reputation: 15

difference between textView.becomeFirstResponder() and tapping on textView?

I have an app page with multiple textfields and one textview. The textview is similar to the message bar on chat apps.

When I tap the message textView box, the code I wrote adjusts the view according to the height of the keyboard. But when I call messageTextView.becomeFirstResponder() instead, the view does not raise with the keyboard.

Is there a difference between textView.becomeFirstResponder() and just tapping on the textView?

Upvotes: 0

Views: 69

Answers (0)

Related Questions