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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-17-2010, 12:31 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 31
Default Sending NSString to another viewController

Hi, im trying to figure out how to do this. I have a string that is loaded from a txt file online in the rootViewController when the app loads (ie viewDidLoad). Then when a button is pressed on the navigationController I want to send that string to the newviewcontroller. This is what i have:

RootViewController

Code:
NSURL *webheight =[NSURL URLWithString: @"http://www.peteappdesigns.com/habscal/webheight.txt"];
	webHeight = [NSString stringWithContentsOfURL:webheight encoding:1 error:nil];
ModalViewController

Code:
NSString *webheighttxt = rootViewController.webHeight;
im pretty sure i connected everything connectly, any ideas?
pete42 is offline   Reply With Quote
Reply

Bookmarks

Tags
nsstring, string, url, view, viewcontoller

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: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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