Skip to content

Commit

Permalink
忘了做判断了,增加判断
Browse files Browse the repository at this point in the history
  • Loading branch information
coderAs7 authored Oct 9, 2017
1 parent 969290d commit d149c12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions QMUIKit/QMUIComponents/QMUIAlertController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,10 @@ - (void)handleMaskViewEvent:(id)sender {

- (void)didClickAlertAction:(QMUIAlertAction *)alertAction {
[self hideWithAnimated:YES completion:^{
alertAction.handler(alertAction);
alertAction.handler = nil;
if (alertAction.handler) {
alertAction.handler(alertAction);
alertAction.handler = nil;
}
}];
}

Expand Down

0 comments on commit d149c12

Please sign in to comment.