简体   繁体   中英

Navigation item don't appear when I running the Simulator, although navigation bar appears on screen

I added 2 bar button items on my main view controller and linked them into code. I also created outlet to navigation item . Although, when I run the iOS simulator none of my bar button items appear, but navigation bar appears. I also tried to repeat it from code, but got the same result. In setup navigation bar I also check Translucent - got the same result. In 3D model screen:

  1. navigation bar -> translucent off
  2. navigation bar -> translucent on

    Can someone help me?

导航栏设置 控制器和层次结构视图中的导航项 在没有导航项目的情况下运行Simulator 3D模型屏幕(translusent off) 3D模型屏幕(translusent on)

我的问题层次视图控制器 在此输入图像描述

The problem was in the hierarchy view controllers. In my case hierarchy was:

navigationVC -> tabBarVC -> myCustomVC ( my problem here )

To solve this problem, I changed it to:

tabBarVC -> navigationVC -> myCustomVC ( my resolve problem here )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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