Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code from sample will not work #36

Open
astrokin opened this issue Nov 22, 2016 · 1 comment
Open

Code from sample will not work #36

astrokin opened this issue Nov 22, 2016 · 1 comment

Comments

@astrokin
Copy link

runkeeperSwitch.addTarget(self, action: #selector(ViewController.switchValueDidChange(sender:)), for: .touchUpInside)

target-action mechanism will not work because of added UITapGestureRecognizer to control

@gontovnik
Copy link
Owner

I think it is a typo. It should be not touchUpInside, but a valueChanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants