ios - What is a good approach to pass data through containment view controllers -
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
Post a Comment