objective c - UINavBarController connecting the same UIViewController to multiple navigation controllers -
i have storyboarded app chain of tableviews followed detail view. kind of classic iphone app. there 4 tabs , each 1 leads navigation controller.
the issue want avoid unnecessary glue code since app finished. if possible connect search , favorites (bottom 2 off tab bar) controller 'root view controllers' same uiviewcontroller done. however, won't work since view controller can root view controller 1 tab. can see i've instituted 2 dummy uiviewcontrollers forward uiviewcontroller in middle. now, unfortunately, have write code make central view controller fake root view controller disable appearance of button, , prevent popping blank root when double-tap tab bar.
has got more elegant solution?
this appears flaw in storyboards. 1 workaround use simple view controllers each navigation controller's rootviewcontroller
. put uicontainerview
in each points uiviewcontroller want share.
Comments
Post a Comment