简体   繁体   English

导航栏后退按钮没有显示?

[英]Navigation bar back button is not showing?

图片描述 I am not getting back button after pushing to next controller through segue 通过segue推送到下一个控制器后,我没有返回按钮

it is just like making a connection between controllers through segue 就像通过segue在控制器之间建立连接一样

there is no code included. 没有代码。 it is happening in storyboard 它正在情节提要中发生

- First: -首先:

You should make the source view controller (not destination) as rootViewController of the navigation view controller. 您应将源视图控制器 (而非目标)设置为导航视图控制器的rootViewController You probably set the segue as push instead of that. 您可能将segue设置为push,而不是push。

- Second: -第二:

Make sure you don't set the back button item manually anywhere. 确保您没有在任何地方手动设置后退按钮项。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM