for example, I have a textfield, that records the user name, after I click the button, it will display the next view, and I want the next view ge the text field data, and display on the second view, how can I do so?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sounds like you’re not following MVC conventions.
If you have a seperate set of “model” classes, that just hold the data, your first view would update it with changes from the text view (either as you go, or when you leave the view).
The second view would get its data from the model – so it would get the updated field.
If you have multiple views referencing the same model “live” at the same time you might need to look at key-value coding too.