Skip to content
Browse files

Merge pull request #1 from tchackie/master

Only unselected RadioButtons from the same group to enable multiple groups on the same screen
  • Loading branch information...
2 parents fd94df4 + 2e8ac53 commit a015b68aeabce55e464d9a16f3377eeb0f7389e7 @t4ku committed Jul 28, 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];
}
}

0 comments on commit a015b68

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