In my app, I need to dismiss the alertview when user click the button in alertview.
I tried [alertView dismissWithClickedButtonIndex:-1 animated:NO];in my app, but it doesn’t work.
In my app, I need to dismiss the alertview when user click the button
Share
Do nothing.
From the UIAlertViewDelegate Protocol Reference.
What makes you think you need to dismiss the alert? Are you perhaps presenting many identical UIAlertViews?