onegray / RadioButton-ios

Lightweight RadioButton class for iOS
MIT License
377 stars 68 forks source link

deselect #7

Closed 0xhex closed 8 years ago

0xhex commented 8 years ago

deselect is not active if you want deselect you should replace code with this

OLD CODE -(void) onTouchUpInside { [self setSelected:YES distinct:YES sendControlEvent:YES]; }

NEW CODE -(void) onTouchUpInside { [self setSelected:!self.selected distinct:YES sendControlEvent:YES]; }

onegray commented 8 years ago

Thanks, but I think it's a standard behaviour for radio button.