Skip to content

Instantly share code, notes, and snippets.

@gmcerveny
Created April 25, 2011 18:37
Show Gist options
  • Save gmcerveny/940973 to your computer and use it in GitHub Desktop.
Save gmcerveny/940973 to your computer and use it in GitHub Desktop.
UIAlertViewDelegate isKeyWindow
- (void)willPresentAlertView:(UIAlertView *)alertView
{
return; //[[[self view] window] isKeyWindow] YES
}
- (void)didPresentAlertView:(UIAlertView *)alertView
{
return; //[[[self view] window] isKeyWindow] NO
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
return; //[[[self view] window] isKeyWindow] YES
}
- (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex
{
return; //[[[self view] window] isKeyWindow] YES
}
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
{
return; //[[[self view] window] isKeyWindow] YES
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment