开发者

Dismiss iOS context menu

开发者 https://www.devze.com 2023-03-04 20:02 出处:网络
I have added another option to the default context menu. Copy / Send When the Send option is selected it runs a JavaScript. however the context menu remains visible. How can I disable it programmatic开

I have added another option to the default context menu. Copy / Send When the Send option is selected it runs a JavaScript. however the context menu remains visible. How can I disable it programmatic开发者_开发技巧ally?


Just use method of UIMenuController:

[menu setMenuVisible:NO animated:YES];

Implement it in SendMenuItemTouched method. Did you try this?

0

精彩评论

暂无评论...
验证码 换一张
取 消