iOS:Swift中UITableViewCell的垃圾桶删除按钮

iOS:Swift中UITableViewCell的垃圾桶删除按钮,ios,swift,uitableview,tableview,uitableviewrowaction,Ios,Swift,Uitableview,Tableview,Uitableviewrowaction,当UITableView的UITableViewCell向右滑动时,是否有方法将此图标添加到UITableViewRowAction中,而不设置UITableViewRowAction的背景 i、 e.将访问权限添加到此图标: , 输入以下代码: func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? { let d

UITableView
UITableViewCell
向右滑动时,是否有方法将此图标添加到
UITableViewRowAction
中,而不设置
UITableViewRowAction
的背景

i、 e.将访问权限添加到此图标:

,

输入以下代码:

func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {

    let delete = UITableViewRowAction(style: .destructive, title: "", handler: {})

}

这在目前是不可能的,但在iOS 11中是可能的。以下是实现这些自定义操作的教程:


我也在这里寻找同样的东西。@Jack Bizard这不是内置的。。。