This is not possible using the standard SDK. However there are various 3rd party solutions that more or less imitate the behavior in Mail.app. Some of them (e.g. MCSwipeTableViewCell, DAContextMenuTableViewController, RMSwipeTableViewCell) detect swipes using gesture recognizers, some of them (e.g. SWTableViewCell) put a second UISScrollView below the standard UITableViewCellScrollView
(private subview of UITableViewCell
) and some of them modify the behavior of UITableViewCellScrollView
.
I like the last approach most since the touch handling feels most natural. Specifically, MSCMoreOptionTableViewCell is good. Your choice may vary depending on your specific needs (whether you need a left-to-right pan, too, whether you need iOS 6 compatibility, etc.). Also be aware that most of these approaches come with a burden: they can easily break in a future iOS version if Apple makes changes in the UITableViewCell
subview hierarchy.