SimplyKiwi
SimplyKiwi

Reputation: 12444

Prevent iPad UIAlertView from dismissing when clicked outside of it?

Is it possible to prevent the default nature of the iPad not iPhone UIAlertView so that when a person clicks outside the bounds of the UIAlertView it will not dismiss? Currently you can click anywhere on the screen and it will just dismiss but I can not have this feature because the user has to click something inside the alert view otherwise my application will not run right and it will crash!

So is there any way to change this default behavior?

Thanks!

Upvotes: 0

Views: 597

Answers (1)

fabregas88
fabregas88

Reputation: 1138

What you can do is to show a view that blocks the screen and then call the UIAlertView.

So now you have your view, the blocking view and the UIAlertView in front.

When you clic the UIAlertView option you also dismiss the blockingView. This blocking View is like a loading View but without a spinner.

Upvotes: 1

Related Questions