I want to use the values entered in the text Fields by the users in two columns and perform the necessary operations to generate the desired output and display the result as an alert message in XCODE? Is there any way that i can perform the calculations using the text fields ?
got the ans:
-(IBAction)buttonPressed1:(id)sender
{
// You may also need to check if your string data is a valid number
int result = [Number1.text intValue] + [Number2.text intValue];
SumAnswer.text = [NSString stringWithFormat:@"%d", result];
}