ios - Splitting Storyboard at UITabBar level -
i'm searching solution split storyboard @ uitabbar level. have app 5 tab , want manage every single tab different storyboard. construction simple minimal storyboard tab bar controller , 5 bigger storyboards every tab viewcontrollers (and segues) must inherit tab bar. ever splitted storyboard ? clue? thanks
i think possible, should go in "viewdidload" of custom uitabbarcontroller
...
nsmutablearray *controllersarray = [[nsmutablearray alloc] init]; // load initial uiviewcontroller every storyboard uistoryboard *sb = [uistoryboard storyboardwithname:@"storyboard1" bundle:nil]; uiviewcontroller *first = [sb instantiateviewcontrollerwithidentifier:@"firstviewcontroller"]; [controllersarray addobject:first]; // repeat process rest ... // set controllers self.viewcontrollers = [controllersarray copy];
remember set storyboard id every main uiviewcontroller
, in illustration 'firstviewcontroller'.
ios storyboard split
No comments:
Post a Comment