I have a UITableView with custom UITableViewCells in it. These cells can be opened and closed with an animation. When the user scrolls I would like to close the cell. I do this by posting a notification like this:
[[NSNotificationCenter defaultCenter] postNotificationName:@"closeSwipedCell" object:nil];
This will call a method which does my simple animation in my subclass of UITableViewCell. This is working fine but the animation won’t happen until the user stops scrolling the UITableView again.
Is it possible to do this animation while scrolling the table view?
Here’s a great detailed explanation of how to do a swipe to a cell submenu, like the twitter iphone app. I think it’s very similar to what your looking for. It doesn’t use notifications to close a cell, it uses the events from the UIScrollViewDelegate as the other commenters have recommended.
iDevRecipes
look for the post on idevrecipes.com called “How does the Twitter iPhone app implement side swiping on a table”.
There’s good description but also code to download.