即时更新UIMenuController

即时更新UIMenuController

本文介绍了即时更新UIMenuController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序可以弹出菜单.当按下全选"按钮时,我要启用删除"按钮.但是,我还无法正常工作.

My application has the ability to pop up a menu. When the "Select All" button is pressed, I want to enable the "Delete" button. However I haven't been able to get this working.

这是一个示例项目,说明了该问题.运行它,然后点击菜单"按钮,然后按全选". 删除"按钮应立即出现,但仅在隐藏菜单然后再次显示时出现.我该如何解决?

Here is a sample project illustrating the issue. Run it, then tap the Menu button, press Select All. The Delete button should appear immediately, but it only appears when you hide the menu and then show it again. How can I fix this?

推荐答案

此问题已在iOS 5中解决(rdar://problem/8819322).

This is resolved in iOS 5 (rdar://problem/8819322).

这篇关于即时更新UIMenuController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 19:39