将应用程序移植到 iPad:上下文菜单的替代方案?请给UI建议

发布于 2024-08-31 14:13:26 字数 102 浏览 1 评论 0原文

考虑为 iPad 移植/重写应用程序并需要一些 UI 建议。在 iPad 上,有没有一种方法可以从文本字段弹出上下文菜单,而文本字段不会失去焦点?如果没有,用户界面中最接近此类功能的是什么?

Considering porting/rewriting an app for the iPad and need some UI advice. On the iPad is there a way to pop a context-menu up from a text field without the text field losing focus? If not, what is the closest thing in the UI to this sort of functionality?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧城烟雨 2024-09-07 14:13:26

在 3.2 中, UIMenuController 的 menuItems 可以自定义,因此您只需将项目添加到该数组中即可。

如果您不需要文本字段比菜单显示的交互,您还可以使用弹出窗口或操作表以获得更大的灵活性。关闭上下文菜单后,使该文本字段-becomeFirstResponder

In 3.2, the menuItems of the UIMenuController can be customized, so you could just add your items into that array.

If you don't need the text field to be interactive than the menu appears, you could also use a pop-over or action sheet for more flexibility. Make that text field -becomeFirstResponder after that context menu is dismissed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文