Modify this method in the mjrefreshfooterview.m file
#pragmaMark-Status related#pragmaMark Set Status-(void) SetState: (mjrefreshstate) state{if(_state = = State)return; Mjrefreshstate oldstate=_state; [Super Setstate:state]; Switch(state) { Casemjrefreshstatepulling:{_statuslabel.text=Mjrefreshfooterreleasetorefresh; [UIView animatewithduration:mjrefreshanimationduration animations:^{_arrowimage.transform=cgaffinetransformidentity; Uiedgeinsets inset=_scrollview.contentinset; Inset.bottom=_scrollviewinitinset.bottom; _scrollview.contentinset=inset; }]; Break; } Casemjrefreshstatenormal:{_statuslabel.text=Mjrefreshfooterpulltorefresh; //just refreshed .CGFloat animduration =mjrefreshanimationduration; CGFloat Deltah=[self contentbreakview]; Cgpoint Tempoffset; intCurrentcount =[self totaldatacountinscrollview]; if(mjrefreshstaterefreshing = = Oldstate && Deltah >0&& Currentcount! =_lastrefreshcount) {Tempoffset=_scrollview.contentoffset; if (_appdelegate.isa) {//a view: Hide Footerview tempoffset.y-= 60; }else if (!_appdelegate.isa) {//b view: Show new data after pull-up tempoffset.y + =; } animduration=0; } [UIView animatewithduration:animduration animations:^{_arrowimage.transform=cgaffinetransformmakerotation (M_PI); Uiedgeinsets inset=_scrollview.contentinset; Inset.bottom=_scrollviewinitinset.bottom; _scrollview.contentinset=inset; }]; if(Animduration = =0) {_scrollview.contentoffset=Tempoffset; } Break; } Casemjrefreshstaterefreshing:{//number of records before the refresh_lastrefreshcount =[self totaldatacountinscrollview]; _statuslabel.text=mjrefreshfooterrefreshing; _arrowimage.transform=cgaffinetransformmakerotation (M_PI); [UIView animatewithduration:mjrefreshanimationduration animations:^{uiedgeinsets inset=_scrollview.contentinset; CGFloat Bottom= Mjrefreshviewheight +_scrollviewinitinset.bottom; CGFloat Deltah=[self contentbreakview]; if(Deltah <0) {//If the content height is less than the height of the viewBottom-=Deltah; } Inset.bottom=Bottom; _scrollview.contentinset=inset; }]; Break; } default: Break; }}
MJ Refresh control Mjrefreshfooterview back up after pull-up workaround