我为我的UITableViewCell实现了iOS 11 trailingSwipeActionsConfigurationForRowAt和leadingSwipeActionsConfigurationForRowAt.我正在使用trailingSwipeActionsConfigurationForRowAt来禁用该行,并使用leadingSwipeActionsConfiguratio
如果我已经刷过撤消,我想禁用撤消滑动操作,但是启用取消滑动操作.如果我已经滑动取消,我还想禁用取消滑动操作,但是启用撤消滑动操作.
尝试在trailingSwipeActionsConfigurationForRowAt方法中返回空的操作数组以禁用单向操作.func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { let swipeAction = UISwipeActionsConfiguration(actions: []) return swipeAction }