move MXScrollView to top programmatically
Closed this issue · 3 comments
shaharukhs commented
I have some textfields on MXScrollView when I select bottom textfield it hides by keyboard so I need to move MXScrollView to top with progress value 0.
How can I achieve this?
Thank you.
brunohorta82 commented
i have this issue too
shaharukhs commented
Following code work for me hope it's helps you
self.mxScrollView.contentOffset = CGPoint(x: 0.0, y: 0.0)
and for restore to its position
self.mxScrollView.contentOffset = CGPoint(x: 0.0, y: -150.0) // my parallax header height is 150
stale commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.