How to remove UITableViewCell swipe to delete bounce

前端 未结 3 1274
孤城傲影
孤城傲影 2021-02-10 10:29

The new \'swipe to delete\' look and feel in iOS 7 added a \'bounce\' effect where the UITableViewCell continues to offset after a swipe. Is there any way to disable this bounce

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-10 10:42

    I dont think there is an option for that but perhaps what you can do is subclass your cell and in didTransitionToState: you can detect the delete confirmation state.

    Now at this point im not entirely sure what you can do to prevent the scrolling but I hope this puts you in the right direction.

    Maybe you can disable the cell's gesture recognizer in this state?

提交回复
热议问题