iphone - One UINavigationcontroller for the whole app? -


i´ve created uinavigationcontroller in appdelegate , initialized "modelselectionviewcontroller". vc has different uibuttons , when touched, new vc ("modelviewcontroller") pushed on navigationstack.

this "modelviewcontroller" acts template view , has uitabbarcontroller different tabs. first vc shown changes on navigationcontroller doesn´t work. set name of title navigationcontroller null.

nslog(@"navi: %@", self.navigationcontroller);

if change code push different vc when touching different tabs, navigation works third level of navigation hierachy.

i want know if it´s possible use 1 navigationcontroller different tabs. hope made setup clear. appreciate help. thanks

if create uitabbarcontroller view that's managed in uinavigationcontroller (ie: if create navigationcontroller first, , it's still around when create tabbarcontroller), you're starting fight frameworks. here's admonishment docs on combining viewcontroller interfaces:

an application uses tab bar controller can use navigation controllers in 1 or more tabs. when combining these 2 types of view controller in same user interface, tab bar controller acts wrapper navigation controllers. never want push tab bar controller onto navigation stack of navigation controller. doing creates unusual situation whereby tab bar appears while specific view controller @ top of navigation stack. tab bars designed persistent, , transient approach can confusing users.

i read "if doesn't break haven't thought of on next update, might reject app anyway because it's 'confusing users.'"

i suppose kill whole navigation hierarchy , navigationcontroller if don't need return there (like if used one-time setup screen). or can other options navigating within viewcontroller that's managed navigationcontroller.

one thing try might navigate uitableview, , use cells push modal view onto navigation stack. familiar users , jive intent of navigation classes.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -