I have a UIScrollView
which contains a UIView
container which contains multiple UITextField
s.
I want to do the following: If I select a field and it's below the keyboard, raise raise text field say 20 points above the keyboard. If it's above the keyboard then don't do anything.
The real problem is that the last field is not visible at all when the keyboard is active because I reached the end of the UIView
(in my case it's 836 points tall).
I thought that I could raise the entire view the height of the keyboard, but it doesn't mean that the current field will be EXACTLY 20 points above the keyboard.
Any ideas?
EDIT: This is not a duplicate question. I already have a UIScrollView
and I want the active text field to be EXACTLY 20 points above the keyboard IF the field is below the keyboard when pressing "Next" on the keyboard after finishing editing the previous field.