O UIRefreshControl do iOS 10.0 não mostra o indicador
Estou usando um UITableView, que possui uma função Puxar para atualizar, mas o botão giratório para Puxar para atualizar não está aparecendo quando chamo o [self.refreshControl beginRefreshing]
O código acima é chamado dentro do viewDidLoad porque a tabela está carregando alguns dados inicialmente. O botão giratório funciona bem se eu executar um pull down para atualizar após a atualização inicial. O título aparece, mas não o botão giratório.
Não consigo resolver esse problema. Funciona bem no iOS 9.3.2, mas não no iOS 10.
Aqui está o código que estou usando atualmente.
- (void)viewDidLoad
{
[super viewDidLoad];
[self setupView];
[self customSetup];
self.refreshControl = [[UIRefreshControl alloc] init];
self.refreshControl.attributedTitle = [[NSAttributedString alloc] initWithString:@"Updating Discounts..."];
[self.refreshControl addTarget:self action:@selector(reloadDeals) forControlEvents:UIControlEventValueChanged];
[self.refreshControl beginRefreshing];
[self.tableView setContentOffset:CGPointMake(0, -self.refreshControl.frame.size.height) animated:YES];
}
Agradecemos sua ajuda antecipadamente