Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 05-14-2011, 07:32 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 9
danny8 is on a distinguished road
Default Display results on different view

Hi guys,
I have a simple math formula that displays the results on the same view. How can I display the results onto a new view? I've been trying to figure this out on my own with no luck.

This is what I'm using now. Should the NSUserDefault method be used? I appreciate any help that can steer me in the right direction. Thank you for your help.

- (IBAction)addNumbers;
{

self.firstNumber = [textField1.text doubleValue];
self.secondNumber = [textField2.text doubleValue];
self.thirdNumber = [textField3.text doubleValue];




// do the math

self.thirdNumber = (firstNumber + secondNumber);



// display the results

textField3.text = [[NSNumber numberWithDouble:thirdNumber] stringValue];

}

Last edited by danny8; 05-18-2011 at 04:21 AM.
danny8 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,962
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:11 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0