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 所示的这些按钮具有两种样式,分别用于下列不同的情况:

带边框样式——例如,在电话联系人导航栏上的“添加”按钮。该样式同时适用于导航栏和工具栏。
平面样式——例如,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 的文档。)

Table 10-1  Standard buttons available for toolbars and navigation bars (shown in the plain style)
表 10-1 可用于工具栏和导航栏的标准按钮(以平面样式展示)
Button
按钮
Meaning
含义
Name
名称
UIButtonBarAction.jpg Opens an action sheet that allows users to take an application-specific action
打开操作列表,使用户能够执行特定应用程序相关的操作
Action
UIButtonBarCamera.jpg Opens an action sheet that displays a photo picker in camera mode
打开操作列表,以显示拍照模式下的照片选择器
Camera
UIButtonBarCompose.jpg Opens a new message view in edit mode
在编辑模式下打开新消息视图
Compose
UIButtonBarBookmarks.jpg Show application-specific bookmarks
显示与特定应用程序相关的书签
Bookmarks
UIButtonBarSearch.jpg Display a search field
显示搜索框
Search
UIButtonBarNew.jpg Create a new item
创建新条目
Add
UIButtonBarTrash.jpg Delete current item
删除当前项
Trash
UIButtonBarOrganize.jpg Move or route an item to a destination within the application, such as a folder
将某项移动或传送至应用程序的目标位置,如某文件夹
Organize
UIButtonBarReply.jpg Send or route an item to another location
将某项发送或传送至其他位置
Reply
UIButtonBarStop.jpg Stop current process or task
停止当前操作或任务
Stop
UIButtonBarRefresh.jpg Refresh contents (use only when necessary; otherwise, refresh automatically)
刷新内容(仅当必要时使用,否则自动刷新)
Refresh
UIButtonBarPlay.jpg Begin media playback or slides
开始播放媒体或幻灯片
Play
UIButtonBarFastForward.jpg Fast forward through media playback or slides
在播放媒体或幻灯片时快进
FastForward
UIButtonBarPause.jpg Pause media playback or slides (note that this implies context preservation)
暂停播放媒体或幻灯片(这也暗示着要保留当前上下文位置)
Pause
UIButtonBarRewind.jpg 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 的文档。)这些按钮在导航栏和工具栏上都可使用,但仅具有带边框样式。如果你为这些按钮指定平面样式,它会转换成带边框样式。

Table 10-2  Bordered action buttons for use in navigation bars
表 10-2 用于导航栏的带边框操作按钮
Button
按钮
Meaning
含义
Name
名称
UIBarSystemItemEdit.jpg Enter an editing or content-manipulation mode
进入编辑或内容处理模式
Edit
UIBarSystemItemCancel.jpg Exit the editing or content-manipulation mode without saving changes
退出编辑或内容处理模式,但不保存更改
Cancel
UIBarSystemItemSave.jpg Save changes and, if appropriate, exit the editing or content-manipulation mode
保存更改,如果合适的话,退出编辑或内容处理模式
Save
UIBarSystemItemDone.jpg Exit the current mode and save changes, if any
退出当前模式,并保存所做的更改
Done
导航
工具箱