maxep/MXParallaxHeader

move MXScrollView to top programmatically

Closed this issue · 3 comments

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.

i have this issue too

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.