开发者

Iphone custom cell keyboard overlaps

开发者 https://www.devze.com 2023-01-26 13:49 出处:网络
i have a TableView with开发者_开发技巧 custom cells that i have built with Interface Builder. Inside the cell, i have a label and a text field. But when i click on the text field to write, the keyboa

i have a TableView with开发者_开发技巧 custom cells that i have built with Interface Builder.

Inside the cell, i have a label and a text field. But when i click on the text field to write, the keyboard overlaps the text field and i can't see what i am writing.

How can i avoid this?

Thanks


You have to resize the view containing the tableview when keyboard is shown. The way you can do is discussed here, How to make a UITextField move up when keyboard is present?

You can search in Stackoverflow more on 'iphone keyboard hides textview'.

after resizing view, you can scroll table to the current cell too.

0

精彩评论

暂无评论...
验证码 换一张
取 消