#import "AdditionViewController.h"
@implementation AdditionViewController
@synthesize Number1;
@synthesize Number2;
@synthesize SumAnswer;
-(IBAction)buttonPressed1:(id)sender
{
SumAnswer.text = Number1.text + Number2.text;
// I want the above line to be edited so that I can get the addition
of both the numbers in the 3rd Text Field
}
-
-
-
-
-
@end

I am really new to iPhone programming .. I am trying to understand how
NSString can be used here .. But I am finding it a bit complicated .

If someone please tell me what the code should be ... It will be a great help .
I have to submit a mini project to my school asap .

You'll need to convert the NSString objects into something you can do maths on. The documentation or the threads linked above will help you. I'm certainly not about to tell you: learning to program is not copy/pasting from what others do, it's about understanding what is happening, building a mental model of how the system works and how your code fits into that. Personally I'd suggest learning plain, basic C as that will teach you a lot about how the machine works. You might actually then understand why @"10"+@"10" doesn't result in @"20". If Objective-C supported operator overloading (it doesn't) it might result in @"1010"...

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.