From f266c9b55c8f2faeb7298229f285a1c33a646b64 Mon Sep 17 00:00:00 2001 From: Freek Sanders Date: Thu, 14 Aug 2014 12:10:39 +0200 Subject: [PATCH] Update LMAlertView.m Explicitly casting the LMAlertView to a UIAlertView (line 426 and line 475) before presenting will prevent warnings in Xcode. --- LMAlertView/LMAlertView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;