I have a segment control that when one of the segments is clicked I want to pass variables (two integers to be specific) to the segmented control's action. How do I modify the below code to do so? I know how to go to the segment action but I don't know how to pass variables to it. I know this is probably obj-C 101 but I'm stumped. Thanks for your help.
[segmentedControl addTarget:self action:@selector(segmentAction:) forControlEvents:UIControlEventValueChanged];
.
.
.
// segment action
- (void) segmentAction:(id)sender {
}