ios - Navigation bar button unresponsive in child view controller of UITabBarController -
i instantiate uitabbarcontroller calling navigationcontroller.viewcontrollers = @[[self.storyboard instantiateviewcontrollerwithidentifier:@"tabcontroller"]];
my tab bar controller has child view embedded in navigation controller. bar button (item
) unresponsive when touch them (the buttons in navigation bar). have tried logging action appears if button not firing @ all.
the thing have done differently way instantiated tab bar controller. missing something?
i connected navigation bar button storyboard action hooked successfully. please note there navigation controller pointing uitabbarcontroller not shown below.
the unwanted behaviour maybe because flow (navigation controller tabbar controller) ill advised in apple hig. more information can found here: storyboard navigationcontroller , tabcontroller. solution found hide navigation bar on navigation controller links navigation bar (can done in interface builder), make reappear in new navigation controller tab bar links to. confusing know, can ever has similar issue.
Comments
Post a Comment