iPhone view architecture question
- by Joe
So I have (for instance) three views:
A: root view
B: a view functionally identical to root
C: a data entry view which collects a few piece of info
What I'm trying to do is reuse C to supply the data it collects to either A or B. It should supply the data to whichever of the two it is pushed onto. The data for A is similar, but functionally distinct, to what collects for B.
Right now, I'm passing data from C to A or B via a singleton class. What I'm trying to avoid is having two instances of C, one to supply data to A and B (because, in actuality, the program will have 5 total views like C.
Does the question make sense?