Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable/Freeze view controller

Tags:

ios

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.

like image 408
Lothario Avatar asked Oct 09 '12 13:10

Lothario


1 Answers

You can simply disable every subview on your view by;

[self.view setUserInteractionEnabled:NO];
like image 184
Bartu Avatar answered Oct 15 '22 21:10

Bartu