Comment le faire passer de l'indicateur d'activité à la divulgation?Comment le faire passer de l'indicateur d'activité à la divulgation dans UITableViewCell après pushViewController
le problème est:
Quand je didSelectRow, je l'ai fait la divulgation à l'indicateur d'activité, car il chargera une image pour le contrôleur suivant la vue et cela a fonctionné, mais je n'ai pas de chance de changer de retour à la divulgation après pushViewController. J'ai déjà essayé de recharger la table à partir du 2ndViewController mais il est tombé en panne.
Alors quelqu'un a une solution pour ce problème ..
Merci à l'avance
Ceci est mon code dans didSelectRow:
-(void)threadStartAnimating:(id)data
{
[activityView startAnimating];
[self.navigationController pushViewController:bdvController animated:YES];
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[cell setAccessoryView:activityView];
[NSThread detachNewThreadSelector:@selector(threadStartAnimating:) toTarget:self withObject:nil];
// Navigation logic -- create and push a new view controller
if(bdvController == nil)
bdvController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:[NSBundle mainBundle]];
AppRecord *appRecord = [self.entries objectAtIndex:indexPath.row];
bdvController.appsRecord = appRecord;
bdvController.HeaderText.text = appRecord.appName;
bdvController.title = appRecord.artist;
[bdvController.tableView reloadData];
}