In my app, i have an overlay view, which is displayed when some processing and networking is happening. It is just a semitransparent view (subclass of UIView) with a loading indicator on it, filling the whole screen.
I want to prevent any of the underlying views to recieve user-interaction (e.g. a underlying table view should not be scrolled, a button not be pressed).
What is the best way i can do this from within the overlay view?
Just set the
userInteractionEnabledproperty for the overlay view toYES. This will cause all touch events to occur on the overlay view and not be passed to the underlying views.