gpambrozio/BlockAlertsAnd-ActionSheets — pull request #62 by giffnyc (2013-08-27 19:01:14+00:00)
Title: Fixes an issue that appears when a block action causes another view to m...

...ake itself a subview of the UIApplication.keywindow. This bug was discovered when the Facebook API was called from a block action, displaying one of the custom FBDialog class windows. The FB API puts this view into the keywindow. When the FBDialog was dismissed, the BlockBackground remained, and made the underlying content unresponsive. This fix moves additional views in the BlockBackground view hierarchy out of itself when the time comes to give up keywindow status, and into the restored keywindow.

This fix may mess with fixes intended to handle multiple sheets to be called within one another and should be tested for this condition.