UITableView, intercepting Edit mode

后端 未结 4 938
-上瘾入骨i
-上瘾入骨i 2021-02-13 13:59

I\'m curious if it\'s possible to intercept the default methods of \'Edit\' mode on a UITableView. Typically you get a free \'delete\' button if you side swipe a UITableViewCell

4条回答
  •  悲哀的现实
    2021-02-13 15:01

    There is a property on UITableViewCell called editAction which is documented as letting you change the action used for insertion or deletion on individual cells (it uses the cell's target property too). I haven't tested it, but this sounds like it might do what you want.

提交回复
热议问题