Is there a way to hide the UIAlertView programatically. I am displaying a progress view in mine and when the progress view is = 1.0 I want to hide the UIAlertView.
R – Hide UIAlertView
iphoneuialertview
iphoneuialertview
Is there a way to hide the UIAlertView programatically. I am displaying a progress view in mine and when the progress view is = 1.0 I want to hide the UIAlertView.
Best Answer
What you can do is observe (using key-value observing) the
progress
attribute in your progress view, then when it hits 1.0 send thedismissWithClickedButtonIndex:animated:
message to the alert view.