I'm having a question in my UItableView, I put a button on the Cell of a TableView.
cell.btnDownload.tag = indexPath.row;
[cell.btnDownload addTarget:self action:@selector(btnDownloadClick:) forControlEvents:UIControlEventTouchUpInside];
Then to execute I created this method.
-(void) btnDownloadClick:(UIButton *) sender{
// realizar donload aqui //
Faz o donwload aqui
// depois de fazer o download buscar a tag e setar o botão invisivel //
for (UITableViewCell *cell in self.tableView.visibleCells) {
UIButton *button = [cell viewWithTag:sender.tag];
if (ValorTag == 0){
button.hidden = YES;
}
}
// depois de esconder o botão vou setar em um [NSUserDefaults standardUserDefaults]; o ID.
}
In this case I'm using my tableView gets all white after clicking the button, I do not know where I might be going wrong !!
You want to hide only the button that was clicked after the download.
To understand better it is as if it were the App Store that you have a button to download and after finishing it changes image or some.
Thank you guys.