iOS-HIG 用户交互-撤销和重做

Undo and Redo

Many apps allow people to shake the device to undo and redo certain operations, such as typing or deleting. When initiated in this manner, an alert asks the user to confirm or cancel the undo or redo operation.

大多数app允许用户摇动设备来撤销和重做一些操作,例如输入或者取消。当启动这种方式,一个提醒要求用户确认或取消撤销或重做操作。

Briefly and precisely describe the operation to be undone or redone.The undo and redo alert title automatically includes a prefix of “Undo ” or “Redo ” (including the trailing space). You need to provide an additional word or two that describe what’s being undone or redone, to appear after this prefix. For example, you might create alert titles such as “Undo Name” or “Redo Address Change.”

简短和准确描述要撤销或重做的操作。撤销和重做提醒标题自动包括“Undo ” or “Redo ”的前缀(英文包括后面的空格)。你需要提供额外文字描述什么正在被撤销或重做,在这个前缀之后出现。例如,你也许创造提醒标题例如“Undo Name” or “Redo Address Change.”

If you use the shake gesture for undo and redo, don’t use it for other actions.Although you can programmatically give multiple meanings to the shake gesture, you run the risk of confusing people and making your app unpredictable.

如果你使用摇动手势来做撤销和重做,不要用它做其他动作。尽管你可以利用编程给予摇动手势很多意义,这样会造成用户困惑和让你的app不可预测。

Provide undo and redo buttons sparingly.It’s confusing when apps provide multiple ways to perform the same task. If your app truly warrants dedicated undo and redo buttons, use the standard system-provided icons and put them in an expected location, such as a navigation bar.

保守地提供撤销和重做按钮。提供执行同样任务的多种方式会让用户感到困惑。如果你的app授权专用的撤销和重做按钮,使用系统提供的表中图标和把它们放到期望的地方,例如导航栏。

Perform undo and redo operations in the current context only.Undo and redo should have a clear and immediate effect on the current context, not an earlier one.

只在当前环境执行撤销和重做操作。撤销和重做应该有一个明确和马上反应在当前环境。

For developer guidance, seeUndo Architecture.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 14,599评论 5 6
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 13,494评论 0 23
  • Linux对于每个用户,系统限制其最大进程数。为提高性能,可以根据设备资源情况,设置各linux 用户的最大进程数...
    米开朗基乐阅读 5,750评论 0 1
  • 大前天,下班的路上看到小女孩穿着漂亮的雨靴,欢快的踩着水坑,有那么一瞬间,感觉她的笑声融化了一整个世界…最近的天空...
    Wu家小y阅读 1,396评论 0 0
  • 做数量关系题,我开始有一种痛不欲生的感觉,之后有一种想超生的欲望。活了这么多年,除了上学就只有上学,这还是我苦苦追...
    思享窝阅读 1,693评论 0 1

友情链接更多精彩内容