0

I have a tableview which has multiple sections and headers but every section has one row in which there is a collection view. I want to implement pull to refresh method on this tableview. Adding refresh control is working on other tableviews in application.

I have tried bellow code

refreshCustomers= [[UIRefreshControl alloc] init]; 
[refreshCustomers addTarget:self action:@selector(customersRefresh) forControlEvents:UIControlEventValueChanged];
 [self.customer addSubview:refreshCustomers];
Piyush
  • 1,534
  • 12
  • 32
Muhammad Umar
  • 131
  • 2
  • 8

1 Answers1

0

Try this:

UITableViewController *tableViewController = [[UITableViewController alloc] init];
tableViewController.tableView = self.customer;

self.refreshControl = [[UIRefreshControl alloc] init];
[self.refreshControl addTarget:self action:@selector(customersRefresh) forControlEvents:UIControlEventValueChanged];
tableViewController.refreshControl = self.refreshControl;
Piyush
  • 1,534
  • 12
  • 32