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

deselect other radio buttons in tableView #134

Open
23hassine1 opened this issue May 21, 2018 · 0 comments
Open

deselect other radio buttons in tableView #134

23hassine1 opened this issue May 21, 2018 · 0 comments

Comments

@23hassine1
Copy link

23hassine1 commented May 21, 2018

I have tried radioButtons[radioButton.tag].deselectOtherButtons() in @objc @IBAction private func logSelectedButton(radioButton : DLRadioButton) function but it doesn't work I tried also
method 2:
for i in 0..<radioButtons.count{
if (radioButton.tag != i){
radioButtons[i].isSelected=false
}
}
it does work but when selected Radiobutton all other radioButtons gets selected then deselected
I am using swift 3 any help is appreciated

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

1 participant