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?