UITableView滑动删除没有确认 [英] UITableView swipe to delete with no confirmation

查看:84
本文介绍了UITableView滑动删除没有确认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于在UITableView中滑动删除功能的快速问题 - 有没有办法继续删除行而不显示删除按钮并等待用户确认?

Quick question about swipe to delete feature in UITableView - is there a way to just go ahead and delete the row without showing the Delete button and waiting for user's confirmation?

推荐答案

实现您的自定义UITableViewCell并使用 UISwipeGestureRecognizer 。您必须自己编写所有逻辑(协议,代理等),但您可以完全自定义。

Implement your custom UITableViewCell and make use of UISwipeGestureRecognizer. You'll have to write all your logic (protocol, delegate etc.) on your own, but you will have it totally customizable.

这篇关于UITableView滑动删除没有确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆