Skip to content

Commit

Permalink
Merge pull request #1 from tchackie/master
Browse files Browse the repository at this point in the history
Only unselected RadioButtons from the same group to enable multiple groups on the same screen
  • Loading branch information
t4ku committed Jul 28, 2012
2 parents fd94df4 + 2e8ac53 commit a015b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RadioButton/RadioButton.m
Original file line number Diff line number Diff line change
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

0 comments on commit a015b68

Please sign in to comment.