diff --git a/UIAlertView+Blocks.m b/UIAlertView+Blocks.m index 4594980..5fc4f6e 100644 --- a/UIAlertView+Blocks.m +++ b/UIAlertView+Blocks.m @@ -84,4 +84,14 @@ - (NSMutableArray *)buttonItems return buttonItems; } +- (void)willPresentAlertView:(UIAlertView *)alertView +{ + [[NSNotificationCenter defaultCenter] postNotificationName:@"AlertViewPresented" object:self.superview]; +} + +- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex +{ + [[NSNotificationCenter defaultCenter] postNotificationName:@"AlertViewDismissed" object:self]; +} + @end