Does the keyboard close my UIViewController?

I have a UIViewController that has a UITextView and UIImageView, when the keyboard comes up, it closes my UITextView. so how can i do this to manage this and the same for a UITableView? UIViewController

UITableViewController

+4
source share
2 answers

You can put all the elements inside the ScrollView, and then move the view to compensate for the keyboard. Someone already wrote a really convenient class, check out: https://github.com/michaeltyson/TPKeyboardAvoiding

Hope this helps!

+2
source

In the first case, there are several good options:

A UITableView will do this fine automatically using the – scrollToRowAtIndexPath:atScrollPosition:animated: method, but any of these solutions will work as well.

0
source

Source: https://habr.com/ru/post/1389175/


All Articles