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

Force a manual refresh #42

Open
andsmi opened this issue Jan 31, 2012 · 2 comments
Open

Force a manual refresh #42

andsmi opened this issue Jan 31, 2012 · 2 comments

Comments

@andsmi
Copy link

andsmi commented Jan 31, 2012

I'd like to force a refresh (espcially on the first load of the app) to indicate to the user that it is loading, as well as let them know about the "pull down to refresh" area (they will see it, and I believe "get the idea") -- I did this on my own with a method that does the scrolling, sets the state, and calls the reload, but is there a better way? Or should I just put my code up?

@tito0224
Copy link

Hi andsmi,

I'm trying to accomplish the same thing. I would love to see you how you implemented it?

@timhibbard
Copy link

In the viewDidLoad event place this code:

if(!self.pullTableView.pullTableIsRefreshing) {
    self.pullTableView.pullTableIsRefreshing = YES;
    [self performSelector:@selector(refreshTable) withObject:nil afterDelay:1];
}

That will perform the refreshTable after a short delay so the user has a chance to see the table "pull down", see the "loading" text, then retract back up.

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

3 participants