How do you get value of segmented control on flipside view for mainview Calculation?
I have 2 segmented controllers on the flipsideview of the SDK utility app, and trying to get their current selected value. On the Mainview I have a calculate button when pressed, I want to check the current value of segmented controllers and assign a variable for each segmented controller. What is the best way to do this? I'm new to programming and have been looking for ways to do this, but nothing solid found yet. Thank you in advance.
Update:
Some like this, but without all the errors.
MainView.m
-(IBAction)CalculateButton

id)sender{
//Get the value of Segmented controller from flipsideview.m so I can perform a calculation.
int riseSegvalue = FlipsideViewController.RiseSegmentedControl.select edSegmentIndex;
float riseInput = RiseTextField.text;
int riseAnswer = riseInput / riseSegvalue;
int numberOfRisers = round(riseAnswer);
RisersTextField.text = printf(riseAnswer);
}
}