SlideOutMenu 移除导航栏 [英] SlideOutMenu remove Navigation Bar

查看:25
本文介绍了SlideOutMenu 移除导航栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目使用 SWRevealViewController.目前,问题是项目启动时,导航栏显示标题为MyApp".但是,当我点击主页时导航栏消失

I use SWRevealViewController for my project. Currently, the problem is that when the project starts, Navigation bar show with title of "MyApp". But, navigation bar disappears when I click on Home

如果我在视图控制器中添加导航栏,第一次运行时会有 2 个导航栏.当我点击主页链接时,一个导航会自动消失.

If I add a Navigation Bar in view controller, there will be 2 navigation bars at first run. One navigation will automatically disappear when I click on Home link.

点击首页链接时如何获得第一张图片?我使用的是 Swift 3.

How to do to get the first image appearance when I click on Home link? I'm using Swift 3.

推荐答案

(代表 OP 发布).

我不确定我解决的方法是对还是错.但是,它对我有用.我通过禁用栏可见性来删除默认导航栏.然后,我在主页中添加了新的导航栏.运行应用程序后,当我按下主页按钮时,我的新导航栏就会出现.

I'm not sure the way I solved is right or wrong. But, it works for me. I remove default Navigation Bar by disabling the bar visibility. Then, I add new Navigation Bar in Home page. After I run the app, my new Navigation Bar appears when I press on the Home button.

这篇关于SlideOutMenu 移除导航栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆