In the tableView , when I am pulling down from the top, it is fetching the data. But if I want pulling up the data from the bottom in tableView, how can I implement, please suggest me
5 Answers
I too stucked with such a situation and at last i found some answers like UIRefreshControl at the bottom of the UITableView iOS6? and thus implemeted our UIActivityIndicatorView
in footerview. Thus it is working fine Now.
// call this method in `viewDidLoad` and connect the tableview delegates.
-(void)initializeRefreshControl
{
indicatorFooter = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(tableVeiwMarkets.frame), 44)];
[indicatorFooter setColor:[UIColor blackColor]];
[indicatorFooter startAnimating];
[self.tableVeiwMarkets setTableFooterView:indicatorFooter];
}
-(void)refreshTableVeiwList
{
// your refresh code goes here
}
-(void)scrollViewDidScroll: (UIScrollView*)scrollView
{
if (scrollView.contentOffset.y + scrollView.frame.size.height == scrollView.contentSize.height)
{
[self refreshTableVeiwList];
}
}

- 1
- 1

- 2,010
- 13
- 18
-
-
You can add the label to that footer view. Thus you can create a custom indicator view. – Sudhin Davis May 26 '15 at 03:29
-
Please find the below control for show the pull to refresh at bottom of tableview

- 6,961
- 3
- 42
- 51
-
This only refreshes one time. its not calling refresh function for 2nd time pull refresh. – karan Jul 08 '16 at 09:25
-
Ok I found answer by myself... we need to call [refreshcontroll endRefreshing]; after finishing loading – karan Jul 08 '16 at 09:31
-
CCBottomPullToRefresh orks in my Swift project, but the activity indicator does not show. Can u help – Arpit B Parekh Jul 24 '18 at 11:38
-
-
1My tab bar height was an issue, so indicator was hides behind it. Works fine now thank you – Arpit B Parekh Jul 24 '18 at 13:56
I've made this Swift library to add pull to refresh to the bottom of UITableview
.
https://github.com/marwendoukh/PullUpToRefresh-iOS
I hope this help you.

- 1,946
- 17
- 26
You can use MNMBottomPullToRefresh for this. its easy to use
1) Copy the whole MNMBottomPullToRefresh folder into your project
2) In your UIViewController class, create a MNMBottomPullToRefreshManager to link an UITableView and the MNMPullToRefreshView. Use a sentence like this in viewDidLoad:
pullToRefreshManager_ = [[MNMBottomPullToRefreshManager alloc] initWithPullToRefreshViewHeight:60.0f tableView:table withClient:self];
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
[pullToRefreshManager_ tableViewScrolled];
}
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate: (BOOL)decelerate
{
[pullToRefreshManager_ tableViewReleased];
}
- (void)bottomPullToRefreshTriggered:(MNMBottomPullToRefreshManager *)manager
{
//method to get more data
// [self CallWebServiceToLoadMorePAYMENTS];
}
}
After reloading tableview call
[pullToRefreshManager_ tableViewReloadFinished];

- 9,286
- 3
- 31
- 48
I just rolled my own "pull up to refresh" Cocoapod: https://cocoapods.org/pods/LottiesBottom It's based off Lottie by airbnb. You can plugin which ever Lottie animation you want.

- 7,288
- 2
- 48
- 66