点击菜单选项之一后,菜单选项不可见
我无法在点击特定菜单选项时显示其他菜单。 我想要的行为类似于默认的剪切复制菜单选项,即:当我长按 UITextView 区域时,我会选择、选择所有和其他菜单。如果我点击全选,我会立即看到复制、粘贴选项。
在我的应用程序中类似,我的屏幕上有一个图像。当我长按图像时,我会看到删除菜单。当我点击删除时,我应该真正删除,取消菜单选项。 我无法显示真正的删除、取消选项。 有什么办法可以做到这一点吗? 我遇到过 UIMenucontroller 的更新方法。但不知道如何使用它。
I am not able to show other menus on tapping a particular menu option.
The behavior which I want is similar to the default cut-copy menu options that is: When I long press in UITextView area, I get select,select all and other menus. If I tap on select all, immediately i see copy, paste options.
Similar in my app, I have an image on the screen. When I long press the image, I get delete menu. When i tap on delete I should get really delete, cancel menu options.
I am not able to show really delete, cancel options.
Is there any way to do this.
I have come across update method of UIMenucontroller. But don't know how to use it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个它有效。
在菜单项单击事件中,添加 UIMenuHideNotification 通知并在其处理程序中编写以下代码
Try this it works.
In your menu item click event, add notification for UIMenuHideNotification and in its handler write follwoing code