Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
i would like to execute some code after a row is deleted from my table with animation. i've chosen UITableViewRowAnimationRight as the row animation. is there a title constant for this animation that would allow me to use the following method?:

Code:
- (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context
	{
	if ((animationID == [COLOR="Red"]UITableViewRowAnimationRight[/COLOR]) && finished)
		//execute code;
	}

i know this is possible with performSelector:withObject:afterDelay, but that seems a bit dirty. perhaps it's the only way?
 
Just a guess. Wrap your call to deleteRowsAtIndexPaths: in your own animation block and add the didStopSelector to that animation.
 
I'm not even sure there is any kind of "animationID". You don't seem to have the parameter types (or even numbers) for animationDidStop: correct. It looks like it should be:
Code:
- (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.