I'm trying to get the pull to refresh feature working properly on iOS 7 in my Table View. On viewDidLoad, I have:
self.refreshControl = [[UIRefreshControl alloc] init];
[self.refreshControl addTarget:self action:@selector(refreshInvoked:forState:) forControlEvents:UIControlEventValueChanged];
I then run:
-(void) refreshInvoked:(id)sender forState:(UIControlState)state {
// Refresh table here...
[_allEntries removeAllObjects];
[self.tableView reloadData];
[self refresh];
}
When the request that the refresh method invokes is done, in the didCompleteRequest code, I have:
[self.refreshControl endRefreshing];
On iOS 6, this would mean that as you pull down on the table view, it would show the circular arrow that would get stretched out as you pull, and after pulled far enough, it would refresh. Right now, though, I see no circular arrow, just a UIActivityIndicator. It also sometimes will work and sometimes will not. What am I missing?
[self.tableView addSubview:self.refreshControl];
and didn't see anything change. @Nikos M.