Do this as the documentation suggests, quoting [UITableViewCell willTransitionToState:]
:
UITableViewCell subclasses can implement this method to animate additional changes to the cell when the state changes. UITableViewCell calls this method whenever a cell switches between states, for example, from a normal state (default) to edit mode. A custom cell can customize and place any new views that appear in a new state. The cell then receives a layoutSubviews (UIView) message in which it can position these new views at its final locations for the new state. A subclass should always call super when overriding this method.
In other words, you can change the position and size of the [UITableViewCell contentView]
in [UITableViewCell layoutSubviews
to cancel the subtask.
source share