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:)]) {