简体   繁体   English

导航栏隐藏标题和后退按钮iOS 7

[英]Navigation bar is hiding title and back button iOS 7

I started working on an iPhone application (XCode 5 and iOS 7). 我开始研究iPhone应用程序(XCode 5和iOS 7)。 I am not sure why when I run my app, it's hiding my Navigation Bar's title and back button. 我不确定为什么在运行应用程序时会隐藏导航栏的标题和后退按钮。 Here are some screen shots. 这是一些屏幕截图。

If you look closely, something is hiding the title and back button. 如果仔细观察,可能会隐藏标题和后退按钮。 Not sure what? 不确定是什么?

在此处输入图片说明

在此处输入图片说明

You need to set tintcolor for the navi button 您需要为导航按钮设置tintcolor

NavController.navigationBar.tintColor = [UIColor blackColor]; NavController.navigationBar.tintColor = [UIColor blackColor];

尝试这个;

self.navigationController.navigationBar.tintColor = [UIColor blackColor];

Try setting the new backIndicatorImage property on UINavigationBar to a custom image. 尝试将UINavigationBar上的新backIndicatorImage属性设置为自定义图像。 Also,don't forget to set the backIndicatorTransitionMaskImage as well otherwise it won't work. 另外,别忘了同时设置backIndicatorTransitionMaskImage ,否则它将无法正常工作。

try using this line of code 尝试使用此行代码

[self.navigationItem setHidesBackButton:NO];

let me know. 让我知道。

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

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