1密码风格自定义操作菜单
我有一个简单的问题。在 iPhone/iPad 上的 1Password 应用程序中,当您点击密码字段时,它会在上下文菜单中为您提供一个非标准选项。我想知道如何使用其他一些非标准选项(例如“复制/电子邮件/其他内容”)重新创建它。
** 这与密码和文本屏蔽无关
I just have a quick question. In the 1Password app on the iPhone/iPad when you tap the password field it gives you a non-standard option in the context-menu. I was wondering how this could be recreated with some other non-standard options like "Copy/Email/Something else".
** This does not pertain to passwords and text masking
Custom Action Menu Options http://cl.ly/b8e92af85937086308f3/content
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 iPad 以及运行 OS 4.0 或更高版本的 iPhone 上,您可以使用
UIMenuController
类的menuItems
属性。如果他们在 3.2 之前的 iOS 版本上做同样的事情,那么它可能是一个定制的视图,看起来就像通常的上下文菜单。On the iPad, and on the iPhone running OS 4.0 or later, you can use
UIMenuController
class'smenuItems
property. If they're doing the same thing on iOS versions prior to 3.2, then it's probably a custom-built view that just looks like the usual context menu.