Get the frame of the keyboard dynamically

前端 未结 4 1165
逝去的感伤
逝去的感伤 2020-12-14 00:48

Is it possible to get the frame, actually its height, of the keyboard dynamically? As I have a UITextView and I would like to adjust its height according to the

4条回答
  •  轮回少年
    2020-12-14 01:13

    Just follow this tutorial from Apple and you will get what you want. Apple Documentation. In order to determine the area covered by keyboard please refer to this tutorial.

提交回复
热议问题