Skip to content

Instantly share code, notes, and snippets.

@agiletalk
Created May 22, 2014 07:21
Show Gist options
  • Save agiletalk/a39b3914232aa40330ff to your computer and use it in GitHub Desktop.
Save agiletalk/a39b3914232aa40330ff to your computer and use it in GitHub Desktop.
ReselectableUISegmentedControl 터치 이벤트
-(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