Created
May 22, 2014 07:21
-
-
Save agiletalk/a39b3914232aa40330ff to your computer and use it in GitHub Desktop.
ReselectableUISegmentedControl 터치 이벤트
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { | |
NSInteger current = self.selectedSegmentIndex; | |
[super touchesBegan:touches withEvent:event]; | |
if (current == self.selectedSegmentIndex) | |
[self sendActionsForControlEvents:UIControlEventValueChanged]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment