导航控制器中的UIViewController缺少后退按钮

导航控制器中的UIViewController缺少后退按钮

本文介绍了导航控制器中的UIViewController缺少后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我有一个带选项卡的表视图控制器,在其中一个选项卡中,我单击一个单元格,该单元会将我带到视图控制器,而不是另一个表视图.

I have a tabbed table view controller and in one of the tabs, I'm clicking on a cell which takes me to a View Controller instead of another Table view.

它们全部嵌入在UINavigationController中,但是当我按下按钮时,没有得到带有上一个视图控制器名称的后退按钮.

It's all embedded in a UINavigationController but when I push, I do not get the back button with the name of the previous view controller on it.

在其他选项卡中,我单击一个单元格,然后推到另一个表格视图,这很好,但是在这种情况下不行.

In the other tabs, I click on a cell and push to another table view and that works fine, but it does not in this case.

我一直在阅读有关内容,并且肯定已经在该细节类的viewDidLoad中设置了新视图控制器的标题.

I've been reading up on this and have certainly set the title of my new view controller in the viewDidLoad of that detail class.

后退按钮功能有效,它将我带回到上一个控制器,但是它没有显示标签.

The back button functionality works, it takes me back to the previous controller, but it just doesn't show me the label.

在此方面提供的任何帮助将不胜感激.

Any assistance on this would be very much appreciated.

谢谢

推荐答案

如果被推送的视图控制器的标题太大,则仅显示后退箭头图标,不带任何文本.这是默认行为.

If the title of the pushed view controller is too big, then only the back arrow icon will be displayed, without any text. That is the default behavior.

这篇关于导航控制器中的UIViewController缺少后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 18:56