Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
oscar gonzalez
7,072 Pointssum of two textfield help!
Hello i got stack in this simple app, im practice in it but i dont know how can i sum two or more text field with integers values or doubles values someone can help me, i've been looking online but i didn't get an answer please help
1 Answer
agreatdaytocode
24,757 PointsSure let's see the code :)
oscar gonzalez
7,072 Pointsoscar gonzalez
7,072 PointsHello Aaron I already resolved this issue thanks for your interesting and I uploaded the code
(IBAction)press:(id)sender{
z=[self.txtnum1.text intValue] + [self.txtnum2.text intValue]; self.txtresult.text =[NSString stringWithFormat:@"%d",z];
self.txtnum1.text=[NSString stringWithFormat:@"%d",x]; self.txtnum2.text = [NSString stringWithFormat:@"%d",y]; z =x+y;
}