I allow users to add new items using a modal, presented vertically. When they are done, the modal slides out of view and the new item is added to the list.
I want the user to see the impact of his addition by inserting the new row with animation, (or maybe selecting it). The trouble is, if the cell is at the bottom of the list, the user doesn't really get to see the animation, as it happens under the still-disappearing modal.
Is there a way to know when this animation is complete? Or do I need to do something more crafty/hacky*
* I am thinking of storing a reference of the added cell in an iVar and then inserting it in viewDidAppear, which does not fire until after the modal has completed it's transition - other ideas would be appreciated.
EDIT: My second hacky idea is to wrap the modal dismissal in an animation block of equal duration (0.3?) to the dismissal.