Open heistings opened 9 years ago
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.
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];
@davidganster refreshContol can only be used in subclass of UITableViewController. It is not a UIScrolView feature. Both UITableView and UICollectionView need this feature.
Sorry - you are correct of course. I was getting hung up on UITableViewController
since you mentioned tableView.tableHeaderView
.
@davidganster Never mind.
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.
I'd like to have this inverted trigger too.
@lgcassab I've been thinking about pull up to load more too.
@pronebird pull up to load more +1
please, implement this feature +1
Use UIRefreshControl
for tableView. It's very fast and easy.
@dartkinselok it needs to pull way down to refresh, not just a little
Any chance to see this implemented ?
I think this is a quite great feature if implemented.