iPhone view architecture question

Posted by Joe on Stack Overflow See other posts from Stack Overflow or by Joe
Published on 2010-05-10T13:27:10Z Indexed on 2010/05/10 13:34 UTC
Read the original article Hit count: 144

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone