Only the main code is posted here
#import "ViewController.h"@interfaceViewcontroller () <UIScrollViewDelegate>{UIView*_loadview;}- (void) viewdidload {_loadview= [[UIView alloc] Initwithframe:cgrectmake (0, - -, the, -)]; //...} #pragam Mark Uiscrollview Delegate- (void) Scrollviewdidscroll: (Uiscrollview *) ScrollView {_loadview.frame= CGRectMake (0, - --Scrollview.contentoffset.y, the, -); if(Scrollview.contentoffset.y<=- -) { //handling Release Refresh prompt}Else { //Turn off release refresh prompt }}- (void) Scrollviewdidenddragging: (Uiscrollview *) ScrollView willdecelerate: (BOOL) decelerate {if(Scrollview.contentoffset.y<=- -) { //animations here purely for excessive smoothing[UIView animatewithduration:0.2animations:^ (void) {Scrollview.contentinset= Uiedgeinsetsmake ( -,0,0,0); }completion:^(BOOL complete) {//handling things that need to be loaded }]; }}//...
Simple Uiscrollview drop-down refresh