简体   繁体   English

详细信息披露按钮和披露指示器有什么区别?

[英]What's the difference between a Detail Disclosure Button and a Disclosure Indicator?

What's the difference between a Detail Disclosure Button and a Disclosure Indicator?详细信息披露按钮和披露指示器有什么区别?

For me, both things are the exact same thing, just that they look a little bit different.对我来说,这两件事是完全一样的,只是它们看起来有点不同。 The first is a blue round button with an chevron to the right.第一个是蓝色圆形按钮,右侧带有 V 形标志。 The second is an simple chevron to the right.第二个是右侧的简单 V 形。 Both things mean the same, to me.这两件事对我来说意义相同。 They mean "more".他们的意思是“更多”。 But someone claimed that Apple will reject the app if the one or the other is used in the wrong situation.但是有人声称,如果在错误的情况下使用其中一个应用程序,Apple 将拒绝该应用程序。

Does someone have an example when the blue Detail Disclosure Button is used, and when the simple Disclosure Indicator one is used?有人有使用蓝色详细信息披露按钮以及使用简单披露指示器的示例吗?

From Apple's iPhone Human Interface Guidelines (a must-read if doing iPhone development):来自 Apple 的iPhone Human Interface Guidelines (如果进行 iPhone 开发,则必须阅读):

Disclosure indicator .披露指标 When this element is present, users know they can tap anywhere in the row to see the next level in the hierarchy or the choices associated with the list item.当此元素存在时,用户知道他们可以点击行中的任意位置以查看层次结构中的下一个级别或与列表项关联的选项。 Use a disclosure indicator in a row when selecting the row results in the display of another list.选择一行时,在一行中使用披露指示符会导致显示另一个列表。 Don't use a disclosure indicator to reveal detailed information about the list item;不要使用披露指示器来显示有关列表项的详细信息; instead, use a detail disclosure button for this purpose.相反,为此目的使用详细信息披露按钮。

Detail disclosure button .详细信息披露按钮 Users tap this element to see detailed information about the list item.用户点击此元素可查看有关列表项的详细信息。 (Note that you can use this element in views other than table views, to reveal additional details about something; see “Detail Disclosure Buttons” for more information.) In a table view, use a detail disclosure button in a row to display details about the list item. (请注意,您可以在表格视图以外的视图中使用此元素来显示有关某事的其他详细信息;有关详细信息,请参阅“详细信息公开按钮”。)在表格视图中,在一行中使用详细信息公开按钮来显示有关列表项。 Note that the detail disclosure button, unlike the disclosure indicator, can perform an action that is separate from the selection of the row.请注意,详细信息披露按钮与披露指示器不同,它可以执行与行选择不同的操作。 For example, in Phone Favorites, tapping the row initiates a call to the contact;例如,在手机收藏夹中,点击该行会向联系人发起呼叫; tapping the detail disclosure button in the row reveals more information about the contact.点击行中的详细信息披露按钮会显示有关该联系人的更多信息。

Once you use the detail disclosure button it acts like a button.使用详细信息披露按钮后,它的作用就像一个按钮。
Meaning that the user has to tap this button in order to perform some action (you can catch this tap by implementing the - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath method of the UITableViewDelegate ).这意味着用户必须以执行一些动作来挖掘这个按钮(您可以通过实现抓住这个龙头- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath的方法UITableViewDelegate )。

If you use the indicator then it just draws the arrow on the right and you will have to implement the - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath in order to catch the tap on the entire table cell.如果您使用指示器,那么它只会在右侧绘制箭头,您将必须实现- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath以捕捉对整个表格单元格的点击.

Hope it helps...希望能帮助到你...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM