0

最佳做法是在您单击 iPhone 上的“设置”应用程序中的后退按钮时自动保存更改,或者有单独的取消(在导航栏的左侧)和完成(在导航栏的右侧)按钮,或者这两种方法都可以吗?

这是设置方法: 在此处输入图像描述

这是取消/完成的方法:

在此处输入图像描述

我有很多这些,不想以错误的方式做它们,只是以后不得不改变它们。

谢谢你。

4

1 回答 1

4

There's a pretty significant difference between your two examples. In the first, you are editing existing data and as such it makes sense that everything will just save in real time. In the second example, you may or may not create an entity. Here, cancel is really important. If I click the new contact button by mistake I do not want an empty contact to be created if I back out.

So the questions you need to ask yourself above all else as far as which button is appropriate;

Am I creating something or editing something that already exists?

If you are editing something that isn't new you probably want an arrow and to save immediately. If you're making a new thing, you need to have an obvious way to cancel doing so.

If a user backs out during entity creation, should that entity be created or discarded?

Unless you want whatever is on the page to be mandatory, you should give people a way to cancel that is very clear and also be as clear as possible that going back will destroy any entered data.

于 2015-04-06T21:52:16.880 回答