I get a UIScrollView
which shows an offset of its content below the status bar. I've read some posts regarding that issue, such as this, and I actually get rid of the status bar offset by setting self.automaticallyAdjustsScrollViewInsets = NO;
in the viewDidLoad
method of the view controller.
But this scroll view contains several text fields I need to scroll when the keyboard is shown and hides them, and having automaticallyAdjustsScrollViewInsets
set to NO
, prevents the scrolling when the keyboard is shown. I tried to set it to YES
again in the keyboardWasShown:
callback, but it has no effect.
I really need help with this issue, how could I solve it?
Thanks in advance