UITableView didSelectRow在编辑时? [英] UITableView didSelectRow while editing?

查看:97
本文介绍了UITableView didSelectRow在编辑时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个界面,就像内置的天气应用程序的翻转视图,或者编辑模式下的时钟应用程序的闹钟视图。表视图始终处于编辑模式,因此删除图标出现在每个单元格的左侧。

I'm building an interface much like the built-in Weather application's flipside view, or the Alarms view of the Clock application in editing mode. The table view is always in editing mode, so the delete icon appears on the left side of each cell.

当表视图处于编辑模式时,我的委托不会t接收 didSelectRowAtIndexPath 通知。它接收 accessoryButtonTappedForRowWithIndexPath 通知,但这不是我想要做的。我想让我的行保持可选择,即使表视图处于编辑模式。

When the table view is in editing mode, my delegate doesn't receive didSelectRowAtIndexPath notifications. It receives accessoryButtonTappedForRowWithIndexPath notifications, but that's not what I want to do. I want my rows to stay selectable, even when the table view is in editing mode.

有关如何完成此任务的任何想法?

Any ideas on how I can accomplish this?

感谢,

PS Hooray为解除NDA。 =)

P.S. Hooray for the lifted NDA. =)

推荐答案

设置 table.allowsSelectionDuringEditing YES

这篇关于UITableView didSelectRow在编辑时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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