是什么?
![](https://img.haomeiwen.com/i2337348/2f0804addda2b847.png)
UITableViewDelegate
- 代理方法
-
用户在选中行里, 从左向右滑动时,调用此方法.
- tableView: leadingSwipeActionsConfigurationForRowAtIndexPath:
-
用户在选中行里, 从右向左滑动时,调用此方法.
- tableView: trailingSwipeActionsConfigurationForRowAtIndexPath:
示例:
UISwipeActionsConfiguration - 表格行滑动后的操作配置
Deprecated - 已弃用
- 指定行中滑动时,调用此方法.
- tableView: editActionsForRowAtIndexPath:
UITableViewRowAction - 左滑时,自定义多个按钮
也可以看看
UIContextualAction - 用户滑动表格行后,执行操作的事件
UIContextualActionStyle - 操作按钮的样式
UIContextualActionHandler - 执行操作的代码块
网友评论