-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to scroll MXScrollView to top programmatically #13
Comments
As a workaround I'm calling scrollView:setContentOffset: since it disables KVO in MXScrollView while you change it.
Of course I had to expose it in a category.
|
Hi @andiradulescu |
Hi @maxep! Thanks! |
Max, |
Where did you put this code ? |
@andiradulescu @rahulvyas @nweintraut @maxep @loicgardiol /**
Scroll to top manually which show parallax header totally
*/
open func hpScrollsToTop(animated: Bool) |
I tried with setContentOffset but it doesn't work.
[self.scrollView setContentOffset:CGPointMake(0, -self.scrollView.contentInset.top)];
Thanks!
The text was updated successfully, but these errors were encountered: