0

My code always works with an 'standerd' UITableview, but now i implanted a Tableview in a viewcontroller. My code is not working (pull to refresh) does anyone know why?

In a normal UITableview it works but hmm, maybe i'm missing some stuf because it's a tableview in a ViewController.

i'm using; https://github.com/enormego/EGOTableViewPullRefresh

- (void)reloadTableViewDataSource{

    //  should be calling your tableviews data source model to reload
    //  put here just for demo
    _reloading = YES;

}

- (void)doneLoadingTableViewData{

    //  model should call this when its done loading
    _reloading = NO;
    [_refreshHeaderView egoRefreshScrollViewDataSourceDidFinishedLoading:self.tableView];

}

I used NSlog and it's calling both function's but it not showing the blue 'pull to refresh' bar and it also do not scrolls up after loading.

Michael Celey
  • 12,645
  • 6
  • 57
  • 62
Jones
  • 375
  • 7
  • 23

2 Answers2

0

Why not moving to a already coded, stable and well known and external code? Have a look at EGOTableViewPullRefresh.

it might solve your issue.

Jonas Schnelli
  • 9,965
  • 3
  • 48
  • 60