Possible Duplicate:
Passing Data between View Controllers
I have 2 view controller:
- Index
- Second
In Index I have 2 textfield and button.
I fill this text field and press “next button” to second view, I need to “show” this two text field, by using Array (later I will send JSON data).
How I can best realize? Please help!
Best regards
Ivan.
Declare an
@propertyin classSecondastextArray. And then while pushing toSecondfromIndex, you need to set this property.In
Second.hfile,In
Index.mfile,Now in class
Second, you can use it asaSecond.textArray[0]andaSecond.textArray[1]