Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView Animation when entering Editmode

Maybe I´m just stupid but I cant understand why this isnt working. I want to achieve a little animation when I'm entering editing mode within a UITableView.

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

Shouldnt this animated:YES suppose to animated this entering of the editmode?

Regards.
- f0rz

like image 926
f0rz Avatar asked Mar 06 '26 19:03

f0rz


1 Answers

Solution, I was reloading the tableview . This was making the animation to stop.
Removed [myTable reloadData] and it worked again!

like image 101
f0rz Avatar answered Mar 08 '26 12:03

f0rz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!