HMSegmentedControl
HMSegmentedControl copied to clipboard
Thanks! Allows for repeated selection!
Thanks! I am looking forward to adding a property that allows for repeated selection. eg: @property(nonatomic, getter = isRepeatSelectedEnabled) BOOL repeatSelectedEnabled;
then use in here:
if ((self.isRepeatSelectedEnabled ? : segment != self.selectedSegmentIndex) && segment < sectionsCount) {
// Check if we have to do anything with the touch event
if (self.isTouchEnabled)
[self setSelectedSegmentIndex:segment animated:self.shouldAnimateUserSelection notify:YES];
}