I want to add my sliderButton after the animation has ended but this doesn't work, it adds the button while the deletion of the section is being animated.
[coursesTable beginUpdates];
[coursesTable deleteSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationTop];
[coursesTable endUpdates];
[self.view addSubview:sliderButton];
Is there a possibility I can call a method that does that for me when the animation ended?