I've seen posts around here that suggest that UIScrollViews
should automatically scroll if a subview UITextField
becomes the first responder; however, I can't figure out how to get this to work.
What I have is a UIViewController
that has a UIScrollView
and within the UIScrollView
there are multiple textfields.
I know how to do this manually if necessary; however, from what I've been reading, it seems possible to have it autoscroll. Help please.
Here is the Swift 4 update to @Supertecnoboff's answer. It worked great for me.
Make sure to extend UITextFieldDelegate and set the textfields' delegate to self.
You can use this function for autoScroll of UITextField
on
UITextFieldDelegate
EDIT:
Im now using IQKeyboardManager Kudos to the developer of this, you need to try this.