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

create group of M13Checkbox #91

Open
AliJalil opened this issue Mar 29, 2017 · 3 comments
Open

create group of M13Checkbox #91

AliJalil opened this issue Mar 29, 2017 · 3 comments

Comments

@AliJalil
Copy link

how can I create a group of M13Checkbox which when I check one of them the others automatically unchecked

@nish2nisarg
Copy link

Has anyone got answer for the same yet ?

@LeonidKokhnovich
Copy link

LeonidKokhnovich commented Dec 2, 2017

This is because checkbox controller is singleton by default:

fileprivate var controller: M13CheckboxController = DefaultValues.controller

I assume it's a bug... As a workaround you can try this fix:

checkbox.stateChangeAnimation = .stroke

With the current implementation, it resets the default controller to a new instance.

@ikyh
Copy link

ikyh commented Mar 13, 2018

Hi. Any update on this issue. I am facing the same problem. I have a tableView which has a checkBox, label and a radioButton in it. I have to select only one radioButton at a time. The other radioButtons in the cell get automatically deselected when I select new radioButton. I am badly stuck on this issue. Please help.

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

No branches or pull requests

5 participants