阅读背景:

在UITableViewCell中,如何将删除确认模式恢复为正常编辑模式?

来源:互联网 

I have a custom confirmation alert dialog box on top of the regular cell deletion confirmation for some cells, it's sort of doing a double confirmation for these cells. (This is after user enters editing mode, not by swipe) So, if the user clicks 'OK' to confirm in my custom confirmation dialog. It's supposed to do the actual deletion, which behaves well since the whole cell will be removed from the TableView. However, if the user clicks 'Cancel' The cell does not get deleted it remains in the table and remain in "Cancellation Confirmation Mode". This is not what I want, I want it to be reverted back to the 'Normal cell editing mode". I've searched through apple documentation, it only provides a "showingDeleteConfirmation" readonly method. It doesn't really have a way to revert this mode back to cell editing. I can do this to hack it:I have a custom confirmation alert dialog box o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: