2010-04-29 9 views
1

J'ai une tableview sur un fichier nib avec le paramètre d'interaction désactivé. J'anime un changement de section comme ceci:UITableView obtient une interaction lors du changement de ligne avec animation

[myTableView beginUpdates]; 
[myTableView deleteSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:YES]; 
[myTableView insertSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:YES]; 
[myTableView endUpdates]; 

Le problème est que, quand je fais cela, les lignes deviennent sélectionnables. Comment puis-je désactiver l'interaction tout en conservant l'animation?

Répondre

0

utilisent ce

self.tableView.userInteractionEnabled = NO;

Questions connexes