Recall Twise UiSwitch action code

26 views Asked by At

When i execute the code '[switchOutlet setOn:NO animated:NO]' in UiSwitch Action method, it will recall that method again. I want to block the user to click the switch button, it will accessed only by the admin.

1

There are 1 answers

1
Spidvmp On

If you want the user can not interact with the UISwitch you can deactivate it with the command

 [switchOutlet setUserInteractionEnabled:NO];