iPhone MVC Question
Posted
by
HM1
on Stack Overflow
See other posts from Stack Overflow
or by HM1
Published on 2011-01-10T02:34:48Z
Indexed on
2011/01/10
4:53 UTC
Read the original article
Hit count: 203
Hi,
I'm bit of a newbie and had a basic question regarding adhering to the MVC model in iPhone coding.
How do I setup a Model class that holds my data and connect it to different controllers in the following setup:
Using Interface Builder, I created a tab controller in which
- Tab #1 has a Nav Controller and a hierarchy of View Controllers.
- Tab #2 has a View Controller
So with what I have now, the View Controller under Tab #1 alloc init's the model class and I know how to pass the model from one ViewController to the next in the Navigation Hierarchy where it can pass the data and/or be updated with new data.
Question is how to pass it from Tab #1's View Controller to Tab #2 View Controller as there is no code linking the two???
Thanks in advance,
Hiren.
© Stack Overflow or respective owner