It can be done easily & automatically if that textfield
is in a table's cell (even when the table.scrollable = NO
).
NOTE that: the position and size of the table must be reasonable. e.g:
height = 10
, and the textfield
in it must be scrolled up 100 when keyboard appears in order to be visible, then that textfield will be out of the table's bound.