People who have used Tweetie should know that pull-down-refresh is a powerful control.
This powerful control is even mistaken for Apple's original control. Only because it is compatible with tableview.
Many applications have added this control, but how can we quickly and easily build it into our own applications. To implement this function, there are several key points: 1. add a view on tableview to control all operations. in the view, control the corresponding RESPONSE event, related status and latest update time. in tableview, some responses of scroll are processed, such as the function to be returned after the float is reached. The above points are complicated to do. However, we are lucky to have theoretical support from foreigners, Devindoty shared a project to help us quickly build such an application. The project URL is as follows:Http://github.com/enormego/EGOTableViewPullRefresh
Coming soonCodeAnalysis is coming soon.
First, let's share some images in my work:
Release to refresh:
Loading:
F