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

Pull down to refresh. #8

Open
heistings opened this issue Mar 9, 2015 · 13 comments
Open

Pull down to refresh. #8

heistings opened this issue Mar 9, 2015 · 13 comments

Comments

@heistings
Copy link

I think this is a quite great feature if implemented.

@heistings
Copy link
Author

And it will be perfect if tableView.tableHeaderView and pull to refresh are both available to me. Using tableView.tableHeaderView to show temporary info, such as activity, is quite convenient.

@davidganster
Copy link

A standard UITableView already supports this feature. Just add this line in viewDidLoad:

self.refreshContol = [[UIRefreshControl alloc] init];
[self.refreshControl addTarget:self action:@selector(yourAction:) forControlEvents:UIControlEventValueChanged];

@heistings
Copy link
Author

@davidganster refreshContol can only be used in subclass of UITableViewController. It is not a UIScrolView feature. Both UITableView and UICollectionView need this feature.

@davidganster
Copy link

Sorry - you are correct of course. I was getting hung up on UITableViewController since you mentioned tableView.tableHeaderView.

@heistings
Copy link
Author

@davidganster Never mind.

@pronebird
Copy link
Owner

It's a little bit outside of scope of this library, but since we already hacked UIScrollView it should be pretty trivial to add pull to refresh. I wonder if UIRefreshControl can be used without table view controller. I think it worked fine with collection views this way, but I am not sure about pure scroll view.

@lgcassab
Copy link

I'd like to have this inverted trigger too.

@pronebird
Copy link
Owner

@lgcassab I've been thinking about pull up to load more too.

@seapy
Copy link

seapy commented Jul 28, 2015

@pronebird pull up to load more +1

@CavalcanteLeo
Copy link

please, implement this feature +1

@ghost
Copy link

ghost commented Nov 15, 2016

Use UIRefreshControl for tableView. It's very fast and easy.

@CavalcanteLeo
Copy link

@dartkinselok it needs to pull way down to refresh, not just a little

@Alex293
Copy link

Alex293 commented Nov 19, 2016

Any chance to see this implemented ?

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

No branches or pull requests

7 participants