问题描述
我想知道是否有一种实现的委托方法,让我区分一下单元格内容视图上的点击和右侧的显示符号.我想根据用户在单元格上的位置将用户转到两个不同的视图.
I was wondering if there is a delegate method to implement that let's me distinguish between a tap on the content view of the cell and the disclosure symbol to the right.I would like to send the user to two different view depending on where on the cell they tap.
我认为该事件通常是通过测试tableView是否为捕获的:
I think the event is normally caught by testing if the tableView is:
(自我编辑)
我只记得在闹钟和通讯录"应用程序中进行编辑时看到过此功能.有谁知道它是Apple甚至允许的,还是被认为是不良"的用户界面设计?有人知道其他使用此方法的Apple应用程序吗?
I can only remember having seen this functionality during editing in the Alarm Clock and Address Book app. Does anyone know if it is even "allowed" by Apple or is it considered "bad" user interface design? Anyone know of other Apple apps that implements this approach?
希望有人可以阐明这个问题:)谢谢
Hope someone can shed a little light on this issue:)Thank you
推荐答案
实施Delegate方法来处理附件按钮上的点击
Implement the Delegate method to handle taps on accessory button
- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath;
您知道如何处理单元格选择.
And you know how to handle cell selection..
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
这篇关于区分在AccessoryView和单元格内容上单击,Apple会允许吗?(iPhone)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!