Scroll To Refresh on Lion
Asked Answered
O

1

8

Is it possible to get the "pull-to-refresh" scrollview, present in many applications on iOS, on Lion? I have been able to get my view in the "bounce area" of the scroll view and detect when to refresh. My problem is keeping the view scrolled up while refreshing and then disabling that when it is done.

Any ideas?

Olericulture answered 31/10, 2011 at 22:8 Comment(1)
I've tried so many things it is ridiculous. I have tried adding the "refresh view" to be a subview of the document and moving everything down its height and that works but it looks strange to see everything teleport downward. I'm looking for a natural looking solution.Olericulture
O
5

I finally achieved this and I open-sourced my code here: https://github.com/alexzielenski/ScrollToRefresh

Olericulture answered 15/11, 2011 at 22:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.