objective c How to set UserInteractionEnabled:NO for the entire view except on UIButton in that view

Viewed 4949

In my application i have a view in that i have many UIElements, buttons, etc..

I need to set

UserInteractionEnabled:NO for all the ui elements in that view except one button.

I tried with

 [self.view setUserInteractionEnabled:NO];

The Require button also the subview that self.view that button also apply same behavior.

I can able to apply individually but it is not a good way.

How should i set UserInteractionEnabled:NO for all the other ui elements except one button

3 Answers
Related