Skip to content

Commit d6e4cc8

Browse files
authored
Merge pull request 12207480#17 from glary/master
fix transitionAnimation crash bug
2 parents 24eb7a4 + db70840 commit d6e4cc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TYAlertControllerDemo/TYAlertController/TYAlertController+TransitionAnimate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ @implementation TYAlertController (TransitionAnimate)
2525
case TYAlertTransitionAnimationDropDown:
2626
return [TYAlertDropDownAnimation alertAnimationIsPresenting:YES];
2727
case TYAlertTransitionAnimationCustom:
28-
return [self.class alertAnimationIsPresenting:YES preferredStyle:self.preferredStyle];
28+
return [self.transitionAnimationClass alertAnimationIsPresenting:YES preferredStyle:self.preferredStyle];
2929
default:
3030
return nil;
3131
}
@@ -41,7 +41,7 @@ @implementation TYAlertController (TransitionAnimate)
4141
case TYAlertTransitionAnimationDropDown:
4242
return [TYAlertDropDownAnimation alertAnimationIsPresenting:NO];
4343
case TYAlertTransitionAnimationCustom:
44-
return [self.class alertAnimationIsPresenting:NO preferredStyle:self.preferredStyle];
44+
return [self.transitionAnimationClass alertAnimationIsPresenting:NO preferredStyle:self.preferredStyle];
4545
default:
4646
return nil;
4747
}

0 commit comments

Comments
 (0)