UITableView is getting interaction when changing rows with animation

Posted by Tiago on Stack Overflow See other posts from Stack Overflow or by Tiago
Published on 2010-04-29T03:32:49Z Indexed on 2010/04/29 3:37 UTC
Read the original article Hit count: 187

Filed under:
|
|
|

Hi, I have a tableview on a nib file with the interaction setting turned off. I'm animating a section change like this:

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

The problem is that, when I do this, the rows become selectable. How do I keep the interaction disabled while keeping the animation?

© Stack Overflow or respective owner

Related posts about uitableview

Related posts about section