Okay I tried that and nothing happened here is the action that is called when the user hits a button. Code: - (IBAction)userIsDone:(id)sender { oneField.text=oneLabel.text; }
I have got my program changing views thanks to your tutorial! But, I've run into another problem. I am trying to take information a user typed into a text field and display it in a label in the second view. How do I move this information over to the second view?
If the second view is a child view of the first one. i.e. the first one calls the second one into being with [self presentModalViewController:secondView animated:YES]; Then you could write a simple method in the second View. - (void)switchText:text{ label.text = text; } You'd call that method in the first view controller [secondViewController switchText:textField.text]; OR You may find it easier to make an IBOutlet for that label in your first view controller, and hook it up accordingly. You always need to be careful with this though as sometimes it can lead to crash city if you go overboard with it.