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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -