From 3d9ea370f622624a04a4c020d34596caa5567414 Mon Sep 17 00:00:00 2001 From: Grigory Lutkov Date: Sun, 9 Apr 2017 16:50:50 +0300 Subject: [PATCH] Refactoring --- LGAlertView/LGAlertView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LGAlertView/LGAlertView.m b/LGAlertView/LGAlertView.m index fb27776..150656a 100644 --- a/LGAlertView/LGAlertView.m +++ b/LGAlertView/LGAlertView.m @@ -3025,7 +3025,7 @@ - (void)destructiveAction:(id)sender { - (void)actionActionAtIndex:(NSUInteger)index title:(NSString *)title { if (self.actionHandler) { - self.actionHandler(self, title, index); + self.actionHandler(self, index, title); } if (self.delegate && [self.delegate respondsToSelector:@selector(alertView:clickedButtonAtIndex:title:)]) { @@ -3042,7 +3042,7 @@ - (void)actionActionAtIndex:(NSUInteger)index title:(NSString *)title { if (self.dismissOnAction) { [self dismissAnimated:self.shouldDismissAnimated completionHandler:^{ if (self.didDismissAfterActionHandler) { - self.didDismissAfterActionHandler(self, title, index); + self.didDismissAfterActionHandler(self, index, title); } if (self.delegate && [self.delegate respondsToSelector:@selector(alertView:didDismissAfterClickedButtonAtIndex:title:)]) {