iphone:Standard-buttons-for-use-in-toolbars-and-navigation-bars
出自UXGuide.net
用于工具栏与导航栏的标准按钮
Standard Buttons for Use in Toolbars and Navigation Bars
iPhone OS makes many of the standard buttons users see in toolbars and navigation bars available to you. These buttons, shown in Table 10-1, are available in two styles, each of which is appropriate for the specific usages described here:
iPhone OS 为你准备了用户能够在工具栏和导航栏上看到的大量标准按钮。表 10-1 所示的这些按钮具有两种样式,分别用于下列不同的情况:
- Bordered style—for example, the Add button in the Phone Contacts navigation bar. This style is suitable for both navigation bars and toolbars.
- 带边框样式——例如,在电话联系人导航栏上的“添加”按钮。该样式同时适用于导航栏和工具栏。
- Plain style—for example, the Compose button in the Mail toolbar. This style is suitable for toolbars only. In fact, if you specify the plain style for a button in the navigation bar, it will be converted to the bordered style.
- 平面样式——例如,Mail 工具栏上的“撰写”按钮。该样式仅适用于工具栏。事实上,如果你为导航栏上的按钮指定平面样式,它会转换成带边框样式。
As with all system-provided buttons, you should avoid using the buttons described in Table 10-1 to represent actions other than those for which they are designed. In particular, avoid choosing a button based on its appearance, without regard for its documented meaning. See “Using System-Provided Buttons and Icons” for a discussion of the reasons why it’s important to use these icons correctly. (Information on symbol names and availability for these buttons is available in documentation for UIBarButtonSystemItem.)
对于所有系统自带的按钮,你应当避免将表 10-1 中的按钮用于表示其设计用途之外的操作。尤其要根据其文档中描述的含义来选择按钮,而非其外观。关于正确使用这些图标的原因的讨论,参见“使用系统自带的按钮与图标”。(关于这些按钮符号名称和可用状态可参阅 UIBarButtonSystemItem 的文档。)
| Button 按钮 | Meaning 含义 | Name 名称 |
|---|---|---|
| Opens an action sheet that allows users to take an application-specific action 打开操作列表,使用户能够执行特定应用程序相关的操作 | Action |
| Opens an action sheet that displays a photo picker in camera mode 打开操作列表,以显示拍照模式下的照片选择器 | Camera |
| Opens a new message view in edit mode 在编辑模式下打开新消息视图 | Compose |
| Show application-specific bookmarks 显示与特定应用程序相关的书签 | Bookmarks |
| Display a search field 显示搜索框 | Search |
| Create a new item 创建新条目 | Add |
| Delete current item 删除当前项 | Trash |
| Move or route an item to a destination within the application, such as a folder 将某项移动或传送至应用程序的目标位置,如某文件夹 | Organize |
| Send or route an item to another location 将某项发送或传送至其他位置 | Reply |
| Stop current process or task 停止当前操作或任务 | Stop |
| Refresh contents (use only when necessary; otherwise, refresh automatically) 刷新内容(仅当必要时使用,否则自动刷新) | Refresh |
| Begin media playback or slides 开始播放媒体或幻灯片 | Play |
| Fast forward through media playback or slides 在播放媒体或幻灯片时快进 | FastForward |
| Pause media playback or slides (note that this implies context preservation) 暂停播放媒体或幻灯片(这也暗示着要保留当前上下文位置) | Pause |
| Move backwards through media playback or slides 在播放媒体或幻灯片快退 | Rewind |
In addition to the buttons shown in Table 10-1, you can also use the system-provided Edit, Cancel, Save, and Done buttons shown in Table 10-2 to support editing or other types of content manipulation in your application. (Information on symbol names and availability for these buttons is available in documentation for UIBarButtonSystemItem.) These buttons are suitable for both navigation bars and toolbars, and are available in the bordered style only. If you specify the plain style for one of these buttons, it will be converted to the bordered style.
除了表 10-1 中列出的按钮之外,你还可以使用系统自带的编辑、取消、保存和完成按钮以便在你的应用程序中支持编辑或其他类型的内容处理,如表 10-2 所示。(关于这些按钮符号名称和可用状态可参阅 UIBarButtonSystemItem 的文档。)这些按钮在导航栏和工具栏上都可使用,但仅具有带边框样式。如果你为这些按钮指定平面样式,它会转换成带边框样式。
| Button 按钮 | Meaning 含义 | Name 名称 |
|---|---|---|
| Enter an editing or content-manipulation mode 进入编辑或内容处理模式 | Edit |
| Exit the editing or content-manipulation mode without saving changes 退出编辑或内容处理模式,但不保存更改 | Cancel |
| Save changes and, if appropriate, exit the editing or content-manipulation mode 保存更改,如果合适的话,退出编辑或内容处理模式 | Save |
| Exit the current mode and save changes, if any 退出当前模式,并保存所做的更改 | Done |