UITableView Animation when entering Editmode

Maybe I'm just stupid, but I can’t understand why this is not working. I want to achieve a little animation when I enter edit mode in a UITableView.

 [super setEditing:NO animated:YES];   
 [myTable setEditing:NO animated:YES];
 [myTable reloadData];
 [self.navigationItem.leftBarButtonItem setTitle:@"Edit"];
 [self.navigationItem.leftBarButtonItem setStyle:UIBarButtonItemStylePlain];

Shouldn't this animated: YES suppose to animate this editmode input?

Sincerely.
- f0rz

+3
source share
1 answer

Solution, I reloaded the table view. This made the animation stop.
Deleted [myTable reloadData] and it works again!

+13
source

Source: https://habr.com/ru/post/1745087/


All Articles