In mobile development, "dropdown refresh" and "pull-up load more" are already ubiquitous in all major apps. It is also very easy to find third-party resources that are directly available for use. such as Egotableviewpullrefresh (drop-down refresh) and Loadmoretablefooterview (pull-up loading more), As well as the Stableviewcontroller and Svpulltorefresh that provide both functions. I have some contact, I prefer to use the Svpulltorefresh, which in the category form of the Uiscrollview function expansion, easy to use, and the code logic is simple, easy to customize the modification.
But in the author's opinion, Svpulltorefresh is not concise enough, is not particularly perfect, for example, it did not add "pull refresh Success" Reminder description ... In view of this, the Svpulltorefresh was slightly modified.
The demo code is detailed here.
Using Svpulltorefresh to implement pull-down refreshes and pull-down loads