导航栏右键问题
我的应用程序中有一个导航栏。以下图片按导航顺序排列。
我遇到的问题是,单击“主”按钮后,我能够执行操作并转到所需的屏幕,但导航栏看起来不像第一个(菜单作为左侧按钮)。相反,它看起来像第四张图片。如何使它看起来像第一张图片,以便我可以让用户通过单击菜单按钮导航到“菜单”屏幕?感谢您的帮助...!!!
I have a navigation bar in my app. The below pictures are in the order of navigation.
Problem I have is, on clicking the "Main" button , I am able to perform the action and goto the required screen , but the navigation bar does not look like the first on (with Menu as left button). Instead it look like 4th image. How to make it look like first image so that I can make the user to navigate to "Menu" screen by clicking menu button ?. Thanks for the help …!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我理解正确,您可能在单击 main 时按下了第一个视图控制器(屏幕截图 1 中的那个),这就是您在后退按钮中看到“镜头”的原因。该后退按钮采用堆栈中前一个视图控制器的标题。您想要做的是当他们使用 popToRootViewController 或 popToViewController:animated 单击 Main 时弹出到第一个视图控制器
If I'm understanding this correctly, you may have pushed the first view controller (The one from screenshot 1) when clicking on main which is why you see "lens" in the back button. That back button takes the title of the previous view controller in the stack. What you want to do is pop to the first view controller when they click on Main using either popToRootViewController or popToViewController:animated