ios - How to segue to a view managed by Navigation Controller? -
i working working on app (ios 5+) contains stacks of views managed navigation controller:
mynavcontroller -> myrootviewcontroller -> mytableviewcontroller -> mydetailviewcontroller
i have view controllers not managed navigation controller handling login (loginviewcontroller) , registration (regviewcontroller) of app.
when app launched, check if account has been created. if so, seque loginviewcontroller user login, , segue myrootviewcontroller. however, if no login detected, user presented regviewcontroller scene create account. then, take user directly mytableviewcontroller scene, bypassing rootviewcontroller scene. possible (via storyboard or programatically)? have attempted define modal segue regviewcontroller mytableviewcontroller, seems partially work - able go scene nav bar missing on top of screen. when select table item fails go mydetailviewcontroller. crashes error "push segues can used when source controller managed instance of uinavigationcontroller."
any advice?
thanks in advance.
select mydetailviewcontroller. on top select editor->embed in ->navigation controller.
Comments
Post a Comment