导航栏更改

时间:2019-09-13 12:36:22

标签: ios swift swift4.2

我实现了AKSideMenu的故事板方法。我面临的问题是导航栏变为白色并且没有后退按钮。而FirstViewController很好。

当我将动画设置为true时,一切都会发生,

self.sideMenuViewController!.setContentViewController(UINavigationController(rootViewController: self.storyboard!.instantiateViewController(withIdentifier: "firstViewController")), animated: true)

如果将动画设置为false,而是FirstViewController,则其他视图控制器不会推送。

导航栏的正常背景颜色是栗色。推入FirstViewController以外的其他控制器时,它变为白色。

以下是常规导航栏。 enter image description here

这是选择其他视图后的视图。另外,请注意没有后退按钮。 enter image description here

最重要的是: -如果将动画设置为false,导航将不起作用 -导航栏背景颜色变为白色,并且没有后退按钮。

那么,如何使其具有原始导航栏行为的动画设置为true

0 个答案:

没有答案