简体   繁体   English

如何在已有的故事板上添加后退按钮和导航栏?

[英]How to add a back button and navigation bar to already existing storyboard?

I'm new to iOS development. 我是iOS开发的新手。 I'd like to know, how to add a back button to a VC, I don't have a navigation bar also. 我想知道,如何在VC中添加后退按钮,我也没有导航栏。 The method of 'embedding' it will also not work, as I have to change a few things. “嵌入”的方法也将不起作用,因为我必须更改一些内容。 Is there an easier method? 有没有更简单的方法? Thanks in advance. 提前致谢。

Since you said that you don't want to embed it in navigation controller, you can drag&drop UINavigation Bar from the sidebar: 由于您说过不想将其嵌入导航控制器中,因此可以从侧边栏中拖放UINavigation Bar:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过Storyboard向导航栏添加后退按钮? - How do I add a Back Button to the Navigation Bar through Storyboard? 如何使用情节提要在消失的导航栏上添加栏按钮项? - How to Add a Bar Button Item on a Disappeared Navigation Bar using Storyboard? 如何在导航栏中添加&lt;返回按钮? - How to add a < Back button to a navigation bar? 添加导航栏,但没有后退按钮 - add navigation bar but there is no back button 如何删除并重新添加导航栏上的“后退按钮” - How to remove and add back the “back button” on navigation bar 使用Storyboard更改导航栏中的后退按钮标签? - Change back button label in navigation bar using Storyboard? 如何以编程方式将按钮项添加到现有导航栏 Xcode - How to add button item to existing navigation bar programmatically Xcode iOS上带有Storyboard的TableView导航栏中的“返回”,“编辑”和“添加”按钮 - Back, Edit and Add buttons in navigation bar of TableView with Storyboard on iOS 如何在swift 4中的导航栏上添加图像后退按钮 - how to add image back button on navigation bar in swift 4 iOS Storyboard,尝试添加条形按钮项作为后退按钮不出现 - iOS Storyboard, trying to add bar button item as back button not appearing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM