segue后导航栏消失

arc4Random

我正在尝试添加一个导航控制器并将其与家庭相关联(当然还有连接到家庭的控制器)

在此处输入图片说明

this because i prefer to not have the navigation controller in the first 3 VC (storyboard entry, login and sign up). My problem is that after a simple self.performSegue(withIdentifier: "goToHome1", sender: self) from one of the first three VC the navigation bar disappear, is the first time i'm going to add a navigation controller and until now i always used only this formulaself.performSegue(withIdentifier: "goToXcontroller", sender: self) to switch from one controller to another so maybe i have to change something to fix this problem? I also tried to find some tutorial about NC but i didn't find something clear that help me with this.

Bilal

You have to create segue to your UINavigationController instead of home view controller. You are skipping navigation controller by directly using segue to home view controller.

导航控制器的 Rootviewcontroller 是 Home 视图控制器。因此,如果您为导航控制器创建 segue,它将打开带有导航栏的主视图控制器。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章