How can I animate the dismissal of a UITableView swipe-to-delete button?

后端 未结 3 683
醉梦人生
醉梦人生 2021-02-13 17:03

As is done in the iPhone Mail app, I would like have the \"Delete\" button which appears on swiping an editable table cell from right to left to animate when it is dism

3条回答
  •  忘了有多久
    2021-02-13 17:45

    I've just ran into this issue as well. I have a series of tableViews and I noticed that some of them have the proper dismissal fade and others don't.

    It seems the difference is a UITableViewCellAccessory. If this is set to anything other than UITableViewCellAccessoryNone then you get the proper animation. I think this might be a bug. Can anyone else confirm this behavior?

提交回复
热议问题