Skip to content

Commit

Permalink
Only unselect RadioButton from the same group
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Heckrath committed Jul 27, 2012
1 parent fd94df4 commit 2e8ac53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RadioButton/RadioButton.m
Expand Up @@ -68,7 +68,7 @@ +(void)buttonSelected:(RadioButton*)radioButton{
if (rb_instances) {
for (int i = 0; i < [rb_instances count]; i++) {
RadioButton *button = [rb_instances objectAtIndex:i];
if (![button isEqual:radioButton]) {
if (![button isEqual:radioButton] && [button.groupId isEqualToString:radioButton.groupId]) {
[button otherButtonSelected:radioButton];
}
}
Expand Down

1 comment on commit 2e8ac53

@monicalakhlan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a running code

Please sign in to comment.