Disable/Freeze view controller

ios

Solution

You can simply disable every subview on your view by;

[self.view setUserInteractionEnabled:NO];

Problem

I need to know how to disable all of the action from view controller. In another words, all of the objects in the view controller will be frozen. As a practice, I declare a button and some objects like textfield, slider, etc. Then all of the objects cannot be used when the button pressed. I need to disable all activities from this view controller.

Original source