将应用程序移植到 iPad:上下文菜单的替代方案?请给UI建议
考虑为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 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.