I am using a normal UITableViewController
with static cells
(1 cell). Having several UITextfields
in it,inside StackView
Since it is a UITableView, the scrolling is handled automatically but the problem is that it scrolls to random positions when a UITextfield is clicked.
The first screenshot is the page without a keyboard. The second screenshot is when First Name textfield is clicked (normal behavior) The third screenshot is when Last Name textfield is clicked (??!! behavior) The fourth screenshot is when Email textfield is clicked (again ???!! behavior)
I am not using any external keyboard handling libraries
I am not using any code to add insets or handle scrolling or handle the keyboard.
The Textfields are placed in correct order(TxtFname,TxtLname,TxtFatherName....)
The UITextfields are placed inside a stackview. Can someone tell me what seems to be the problem?