【发布时间】:2019-01-06 17:27:19
【问题描述】:
我创建了MainViewController,它有两个按钮让我们说A button和B button嵌入MainViewController到NavigationController添加show segue从A button到A ViewController然后用B button和做同样的事情B ViewController。当我按下 A 按钮时,A ViewController 出现导航栏,但 B ViewController 显示没有导航栏。我做错了什么?
【问题讨论】:
-
太混乱了。请您提供一些代码/屏幕截图吗?
-
我会检查 segue 类型 - 如果类型是 push(而不是 push modal 等),那么您应该检查两个控制器是否将值
Prefers Navigation Bar hidden设置为 NO。
标签: ios xcode uistoryboard uistoryboardsegue xcode-storyboard