diff --git a/LMAlertView/LMAlertView.m b/LMAlertView/LMAlertView.m index 2ad40d3..a97393e 100644 --- a/LMAlertView/LMAlertView.m +++ b/LMAlertView/LMAlertView.m @@ -423,7 +423,7 @@ - (void)transformAlertContainerViewForOrientation{ - (void)show { if ([self.delegate respondsToSelector:@selector(willPresentAlertView:)]) { - [self.delegate willPresentAlertView:self]; + [self.delegate willPresentAlertView:(UIAlertView *)self]; } id appDelegate = [[UIApplication sharedApplication] delegate]; @@ -472,7 +472,7 @@ - (void)show modalTransformAnimation.toValue = [NSValue valueWithCATransform3D:transformTo]; modalTransformAnimation.completion = ^(BOOL finished){ if ([self.delegate respondsToSelector:@selector(didPresentAlertView:)]) { - [self.delegate didPresentAlertView:self]; + [self.delegate didPresentAlertView:(UIAlertView *)self]; } }; self.representationView.layer.transform = transformTo;