How can I pass information between 2 different View Controllers?
Posted
by sagiftw
on Stack Overflow
See other posts from Stack Overflow
or by sagiftw
Published on 2010-04-15T15:52:56Z
Indexed on
2010/04/15
16:03 UTC
Read the original article
Hit count: 128
Hi, This is a simple question:
I have 2 different view controllers, and each one has its own data stored in its .m file. I want to take a value, for instance, an integer value (int i=3;) that is declared in ViewController1 and pass it to ViewController2, so I will be able to use that value in the second view controller.
Can anyone please tell me how to do it?
Thanks in advance, Sagiftw
© Stack Overflow or respective owner