alikaragoz / MCSwipeTableViewCell

:point_up_2: Convenient UITableViewCell subclass that implements a swippable content to trigger actions (similar to the Mailbox app).
MIT License
2.96k stars 411 forks source link

release or stop swiping cell after certain percentage swiped #93

Open medinarodelsamson opened 9 years ago

medinarodelsamson commented 9 years ago

I would like to ask how can I achieve to stop or release a cell when swiping. Let's say I am at 25% on swiping a cell, I want to cell to snap back.

    - (void)swipeTableViewCell:(MCSwipeTableViewCell *)cell didSwipeWithPercentage:(CGFloat)percentage {
        if (percentage > 0.25) {
            // stop swiping or release cell
        }
    }

thanks!