ios - Navigation between multiple NavigationControllers

后端 未结 2 479
孤城傲影
孤城傲影 2021-02-05 20:44

I\'m trying to understand a behavior of navigating between ViewControllers with (and without) using a NavigationController and I\'m misunderstanding some things while reading ar

2条回答
  •  情歌与酒
    2021-02-05 21:44

    What makes sense, is to present a new UINavigationController with its child view controller(s) from an existing one as a modal dialog (this can be done with a modal segue). Each navigation controller has its own stack, and while you're busy in the dialog, the 'master' stack remains intact. When you dismiss the dialog, you will return to the 'master'.

    I'm not sure if it is technically possible to push a navigation controller onto an existing one. It makes no sense, though.

提交回复
热议问题