Make a variable in your controller (not your view, associate your actions with your view with the controller in Interface Builder). Then you can do two things:
a) When is it:
-(IBAction)CalculateButton:(id)sender
starts up. Let the controller receive the values from the flip side and perform the calculation.
b) Create a Model object (perhaps a very advanced application size, but its good design and best practice)
@interface CalculateObject : NSObject {
}
- (...) doCalculation;
@end
, , . , . doCalculate.
. , Model-View-Controller, :
http://en.wikipedia.org/wiki/Model -View-Controller