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.

enter image description here

enter image description here

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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -