iOS: Scroll up to refresh

假装没事ソ 提交于 2019-12-01 02:51:16

问题


Many iOS apps have a "scroll up to refresh" feature, such as the Twitter app. If you scroll up beyond the beginning of the page or table, you'll get a message explaining how to use the feature.

That controller is not from Apple but many apps seem to use it. I was told it was released for public use by a programmer, but I can't find it after a long google session.

I'd be grateful if anyone can direct me to it! Thanks!


回答1:


Here's a link to the original code by enormego on github:

https://github.com/enormego/EGOTableViewPullRefresh




回答2:


This is a popular implementation: https://github.com/enormego/EGOTableViewPullRefresh




回答3:


https://github.com/enormego/EGOTableViewPullRefresh

Also it was in Facebook's three20 library I guess.




回答4:


I was able to find two examples a few minutes after posting this question:

How to make a Pull-To-Reload TableView just like Tweetie 2



来源:https://stackoverflow.com/questions/4247166/ios-scroll-up-to-refresh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!