ios - What is a good approach to pass data through containment view controllers -


example

i trying pass instance of object "initial" view controller "item1" , "item2". avoid subclassing uitabbarcontroller make containment view controller know "too much".

is there approach using storyboards or code besides subclassing uitabbarcontroller?

i avoid subclassing uitabbarcontroller make containment view controller know "too much".

you should subclass, , subclass should implement specific protocol purpose. yhen, containing vc knows protocol , it's appropriate because has direct responsibility.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -