Open astrokin opened 7 years ago
runkeeperSwitch.addTarget(self, action: #selector(ViewController.switchValueDidChange(sender:)), for: .touchUpInside)
target-action mechanism will not work because of added UITapGestureRecognizer to control
I think it is a typo. It should be not touchUpInside, but a valueChanged.
touchUpInside
valueChanged
runkeeperSwitch.addTarget(self, action: #selector(ViewController.switchValueDidChange(sender:)), for: .touchUpInside)
target-action mechanism will not work because of added UITapGestureRecognizer to control