Framework Download: http://download.csdn.net/detail/u013243469/8501599
#import "MJREFRESH.H"//Build refresh control [self Setuprefresh]; #pragma mark-Refresh control-(void) setuprefresh{ //1. Drop-down Refresh ( Enter refresh state to invoke Self's headerrereshing)// [Self.tableview addheaderwithtarget:self Action: @selector (headerrereshing) ]; DateKey is used to store refresh time, which guarantees different refresh times for different interfaces [Self.tableview addheaderwithtarget:self action: @selector ( headerrereshing) datekey:@ "unique identification"]; 2. Pull up load more (enter refresh state to invoke Self's footerrereshing) [Self.tableview addfooterwithtarget:self action: @selector ( footerrereshing)]; [Self.tableview headerbeginrefreshing];} Drop-down Refresh trigger Method-(void) headerrereshing{ //Stop drop-down status [_tableview headerendrefreshing];} Pull-up load trigger Method-(void) footerrereshing{ //Stop pull-up status [_tableview footerendrefreshing];}
IOS: Pull-up refresh, drop-down loading