avoid view when opening keyboard from a UITextView inside a UITableView with custom cell

前端 未结 5 929
感动是毒
感动是毒 2021-01-07 09:04

I have a UIViewController that contains a UITableView with custom cells, inside the cell are UILabels, a couple of uneditable UI

5条回答
  •  暖寄归人
    2021-01-07 09:42

    Two solutions:

    Preferred: use a UITableViewController instead of a UIViewController as that one will automatically make sure that your keypad won't hide the editable field.

    Hacky: How to make a UITextField move up when keyboard is present?

提交回复
热议问题