public
Created

fix for animation race condition for EGOTableViewPullRefresh

  • Download Gist
gistfile1.m
Objective-C
1 2 3 4 5 6 7 8 9 10 11 12 13 14
- (void)egoRefreshScrollViewDataSourceDidFinishedLoading:(UIScrollView *)scrollView
{
[self performSelector:@selector(performFinishedAnimationForScrollView:) withObject:scrollView afterDelay:0.0];
}
 
- (void) performFinishedAnimationForScrollView:(UIScrollView *)scrollView
{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.3];
[scrollView setContentInset:UIEdgeInsetsMake(0.0f, 0.0f, 0.0f, 0.0f)];
[UIView commitAnimations];
[self setState:EGOOPullRefreshNormal];
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.