-
-
Save andr-ggn/71e6a8f9791b94b6d132 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[yourSwitchObject addTarget:self action:@selector(setState:) forControlEvents:UIControlEventValueChanged]; | |
- (void)setState:(id)sender { | |
BOOL state = [sender isOn]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment