Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when datasource is not available #23

Open
stsandro opened this issue Jul 13, 2011 · 2 comments
Open

Bug when datasource is not available #23

stsandro opened this issue Jul 13, 2011 · 2 comments

Comments

@stsandro
Copy link

Hello,

when I replace
[self performSelector:@selector(doneLoadingTableViewData) withObject:nil afterDelay:3.0];
with
[self performSelector:@selector(doneLoadingTableViewData)];
in

  • (void)egoRefreshTableHeaderDidTriggerRefresh:(EGORefreshTableHeaderView*)view

the view stays always in loading mode. This can happen for instance if you load something from the web and the device has no connection and therefore there's nothing to reload.

@henryeverett
Copy link

I am also experiencing this issue.

@henryeverett
Copy link

I have forked the repo and fixed this bug as far as I can tell.
The problem stems from the return of data (or no data) happing quicker than it takes for the pulldown animation to finish.
I have fixed this by adding an animation delegate which checks again if the data is finished loading once the animation is finished. See the demo files for an example of how to implement this in your tableView class.

https://github.com/henrysoup/EGOTableViewPullRefresh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants