Have you tried using egoRefreshScrollViewDataSourceStartManualLoading
?
Assuming your EGORefreshTableHeaderView
instance EGORefreshTableHeaderView
named _refreshTableHeaderView, then a call like:
[_refreshTableHeaderView egoRefreshScrollViewDataSourceStartManualLoading:self.tableView]
works for me ...
So, it has been too long since I used it and I forgot that I applied this change myself ...
I modified EGORefreshTableHeaderDelegate
(declared in EGORefreshTableHeaderView.h
) to add this additional protocol:
- (void)egoRefreshScrollViewDataSourceStartManualLoading:(UIScrollView *)scrollView;
And the implementation (in EGORefreshTableHeaderView.m
):
- (void)egoRefreshScrollViewDataSourceStartManualLoading:(UIScrollView *)scrollView { [self setState:EGOOPullRefreshLoading]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.2]; scrollView.contentInset = UIEdgeInsetsMake(60.0f, 0.0f, 0.0f, 0.0f); [UIView commitAnimations]; if ([_delegate respondsToSelector:@selector(egoRefreshTableHeaderDidTriggerRefresh:)]) { [_delegate egoRefreshTableHeaderDidTriggerRefresh:self]; } }
Let me know if you need more help.
(And I thank Huge for a great job!)
source share