如何禁用UITableView中某些行的删除操作? [英] How do I disable the delete operation for certain row in a UITableView?

查看:118
本文介绍了如何禁用UITableView中某些行的删除操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道使用 setEditing:来启用UITableView的编辑模式。

I know about using setEditing: to enable the editing mode of UITableView.

但我更喜欢禁用某些行的操作(启用其他行)。

But I prefer to disable the operation for some certain rows (enable other rows).

有可能吗?

谢谢,

interdev

推荐答案

实施 数据源中的-tableView:canEditRowAtIndexPath:方法。返回这些行。

这篇关于如何禁用UITableView中某些行的删除操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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