Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alertView dismissWithClickedButtonIndex: doesn't not call action #28

Open
nightfall708 opened this issue Jul 11, 2013 · 2 comments
Open

Comments

@nightfall708
Copy link

Hi,

It seems that dismissing an alertView using:

[alertview dismissWithClickedButtonIndex:0 animated:YES];

dismisses the alertView, but does not call the button's action.

@DavydLiu
Copy link

I have the same issue here. How to call the tabBlock programmatically?

@NoahSaso
Copy link

For anyone else that reads this:
I ran into this problem as well. I found a solution:

After:

[alertView dismissWithClickedButtonIndex:1 animated:YES];

Add:

[alertView.delegate alertView:alertView clickedButtonAtIndex:1];

The line above activates the handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants