File tree Expand file tree Collapse file tree
FEAlertControllerDemo/FEAlertControllerDemo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -334,6 +334,10 @@ -(void)prepareDisplay{
334334#pragma mark FEAlertContentViewDelegate
335335
336336-(void )alertControllerButtonAction : (UIButton *)button {
337+ // Dismiss
338+ [self dismiss ];
339+
340+ // Callback
337341 NSInteger clickButtonIndex = (button == self.contentView .buttonLeft ? 0 : 1 );
338342 if (self.callback ) {
339343 self.callback (self,clickButtonIndex);
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ - (IBAction)hey:(UIButton *)sender {
3333 highlightButtonIndex: 1
3434 callback: ^(FEAlertController *alertController, NSInteger buttonIndex) {
3535 NSLog (@" click button index : %@ " , @(buttonIndex));
36- [alertController dismiss ];
3736 }];
3837
3938 // Animation Image
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ FEAlertController *alertController = [FEAlertController alertWithTitle:@"What ar
3232 highlightButtonIndex:1
3333 callback:^(FEAlertController *alertController, NSInteger buttonIndex) {
3434 NSLog(@"click button index : %@", @(buttonIndex));
35- [alertController dismiss];
3635}];
3736```
3837
You can’t perform that action at this time.
0 commit comments