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

前端 未结 5 921
感动是毒
感动是毒 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:58

    A simple solution. Implement the heightForFooter method, and let it return a value of (say) 100, and when you select the a cell in UITableView, they will simply slide up by that height, and the keyboard will not cover the view.

提交回复
热议问题