my current scenario is this -> i am showing a view controller that has a button. when i click that button a small view opens. now what i want. when that view is shown i don’t want user to touch below that ( even in navigation bar’s back button ). the same thing which UIAlertView does. how i can achieve that thing with my custom view ??
Please suggest.
You could cover the current view with a different
UIViewwhich would take the touches and stop them.Here’s some code to overlay a
UIViewwhich is black (and slightly transparent) to block touches.UPDATE
To disable the back button, try using the following.