We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 411cce9 + b601af8 commit 62d5126Copy full SHA for 62d5126
1 file changed
SCLAlertView/SCLAlertView.m
@@ -984,8 +984,9 @@ - (SCLAlertViewResponder *)showTitle:(UIViewController *)vc image:(UIImage *)ima
984
{
985
SCLButton *btn = _buttons[buttonTimer.buttonIndex];
986
btn.timer = buttonTimer;
987
+ __weak __typeof(self) weakSelf = self;
988
[buttonTimer startTimerWithTimeLimit:duration completed:^{
- [self buttonTapped:btn];
989
+ [weakSelf buttonTapped:btn];
990
}];
991
}
992
else
0 commit comments