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 userInteractionEnabled
property for the overlay view to YES
. This will cause all touch events to occur on the overlay view and not be passed to the underlying views.
Just set property userInteractionEnabled
of your semitransparent overlay view to YES.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With