Skip to content

Commit 9ee5bd7

Browse files
authored
Merge pull request #27 from karosLi/master
Fixes an issue where a segment would not respond to taps
2 parents 22b90ec + 9018866 commit 9ee5bd7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

TOSegmentedControl/TOSegmentedControl.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ - (void)didTapDown:(UIControl *)control withEvent:(UIEvent *)event
792792
[UIView animateWithDuration:0.35f animations:^{
793793
[self setItemAtIndex:tappedIndex faded:YES];
794794
}];
795+
796+
[self setSelectedSegmentIndex:tappedIndex animated:YES];
795797
return;
796798
}
797799

0 commit comments

Comments
 (0)