当表格视图加载新数据时,如果我居高不下,则mjrefresh会像这样显示
如图所示,位置错误
-(BOOL)refresh{
if(self.tableview.contentOffset.y == 0){
[self.tableview.mj_header beginRefreshing];
return YES;
}else{
// It is not work
[self.tableview scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:YES];
//also not work
//[self.tableView scrollRectToVisible:CGRectMake(0, MJRefreshHeaderHeight, 1, 1) animated:YES];
return NO;
} }