samvermette/SVProgressHUD — Issue #35: Doesn't play well with UIMenuController under iOS 5.1(b)
Author: bzotto
Created: 2011-12-07 21:08:29+00:00
State: open

Heads-up. Under iOS 5.1b, once the HUD has appeared and then disappeared, invocations elsewhere in the UI of UIMenuController will fail (ie the menu will simply not appear), both in custom views but also in system-standard text views.

It's something to do with the interactions in window ordering, though I'm not sure whether it's a beta-only change that Apple's making, or whether this is going to be a production problem. I'm not well enough versed in the UIWindow stuff to understand what's happening exactly, but possibly the UIMenuController lives on its own window and that's getting shuffled behind when the HUD dismisses?

Opening another modal view controller (e.g. the mail compose controller, or any custom form sheet, etc) "clears" the condition and the menu will function again.

If I turn the HUD into a UIView subclass (rather than UIWindow) and simply add it as a subview to my current known window, I find it no longer exhibits this interaction.