diff --git a/Example/SPAlertController/SPAlertController/SPAlertController.m b/Example/SPAlertController/SPAlertController/SPAlertController.m index 1ede07b..630787b 100755 --- a/Example/SPAlertController/SPAlertController/SPAlertController.m +++ b/Example/SPAlertController/SPAlertController/SPAlertController.m @@ -2068,11 +2068,12 @@ - (SPInterfaceActionSequenceView *)actionSequenceView { actionSequenceView.translatesAutoresizingMaskIntoConstraints = NO; __weak typeof(self) weakSelf = self; actionSequenceView.buttonClickedInActionViewBlock = ^(NSInteger index) { - [weakSelf dismissViewControllerAnimated:YES completion:nil]; - SPAlertAction *action = weakSelf.actions[index]; - if (action.handler) { - action.handler(action); - } + [weakSelf dismissViewControllerAnimated:YES completion:^{ + SPAlertAction *action = weakSelf.actions[index]; + if (action.handler) { + action.handler(action); + } + }]; }; if (self.actions.count && !self.customActionSequenceView) { [self.alertView addSubview:actionSequenceView];