Skip to content
Browse files

Only unselect RadioButton from the same group

  • Loading branch information...
1 parent fd94df4 commit 2e8ac53290648f597ad92b778f41048d58c75d94 Daniel Heckrath committed Jul 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 RadioButton/RadioButton.m
View
2 RadioButton/RadioButton.m
@@ -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];
}
}

1 comment on commit 2e8ac53

@monicalakhlan

not a running code

Please sign in to comment.
Something went wrong with that request. Please try again.