简体   繁体   English

iOS:popover over popover?

[英]iOS: popover over popover?

I'm developing a iPad app which has a popover which appears to show you a list of items.我正在开发一个 iPad 应用程序,它有一个弹出窗口,似乎向您显示项目列表。 I need the ability to delete one of the items, so I'm considering adding the ability to press-and-hold (aka long tap) on one of the list items which would show another popover for that item, with an action list showing a delete button.我需要删除其中一个项目的能力,因此我正在考虑在其中一个列表项目上添加按住(又名长按)的能力,这将显示该项目的另一个弹出窗口,并显示一个操作列表一个删除按钮。

Two questions:两个问题:

  • In terms of iPad UX, is this a good idea?就 iPad UX 而言,这是个好主意吗? Haven't seen it anywhere, and I guess it could be a little confusing...but how else can I do this?还没有在任何地方看到它,我想这可能有点令人困惑......但我还能怎么做呢?
  • Is this possible, code wise?这可能吗,代码明智? I haven't tried it, but I am still pretty new to iOS development so I could see myself fumbling round for hours before finding out there's a technical reason why it's not possible.我还没有尝试过,但我对 iOS 开发仍然很陌生,所以我可以看到自己摸索了几个小时,然后才发现这是不可能的技术原因。

Thanks!谢谢!

It's not a good idea, and I don't think it's possible even though it's possible.这不是一个好主意,即使有可能,我也不认为这是可能的。

Apple's Human Interface Guidelines clearly state that you should not do it . Apple 的人机界面指南明确 state 你不应该这样做 This is as definitive an answer as there can be regarding UX.这是关于 UX 的明确答案。

For inspiration on how to delete items without requiring a popover, look at how UITableView does it, for instance.有关如何在不需要弹出框的情况下删除项目的灵感,请查看UITableView是如何做到的,例如。

Often, you'll have an Edit button in the top toolbar inside the popover to trigger edit mode.通常,您会在弹出框内的顶部工具栏中有一个“编辑”按钮来触发编辑模式。

If you want some kind of confirmation dialog, use UIActionSheet .如果您想要某种确认对话框,请使用UIActionSheet They look good and work well enough, especially in popovers.它们看起来不错并且工作得很好,尤其是在弹出窗口中。 In your case, I think these are the way to go.就您而言,我认为这些是通往 go 的方法。

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

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