I fought for a long time with a similar error. The best I can say _shouldUseKeyWindowStackis the internal UIResponder method, which appeared in iOS 4.0 (suppose this is due to multitasking).
( ). - , ( UIAlert) . , , , [self performSelectorOnMainThread:withObject:waitUntilDone:], .