热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

使用xcode9在ios11中没有显示导航图标?-Navigationiconisnotshowinginios11withxcode9?

Ihaveinstalledmyexistingapplicationinios11usingxcode8thenavigationbariconsaredisplayi

I have installed my existing application in ios11 using xcode8 the navigation bar icons are displaying as expected when app is run using xcode9 the navigation bar icons are not showing but click actions are working fine. any icons in Navigation bar are missing while navigating from one controller to another controller.

我已经使用xcode8在ios11中安装了我现有的应用程序,当使用xcode9运行应用程序时导航栏图标正在按预期显示导航栏图标未显示但单击操作正常工作。从一个控制器导航到另一个控制器时,导航栏中的任何图标都会丢失。

2 个解决方案

#1


0  

If the navigation icons are not showing, but the interaction is still exists and works properly, it seems, that the problem is with image of the BarButtonItem. You can do next:

如果导航图标没有显示,但交互仍然存在且工作正常,那么问题就在于BarButtonItem的图像。你可以做下一个:

1) Try to set a system icon for BarButtonItem
2) Look at assets and fill all three resolutions (1, @2x, @3x)
3) Check the color of BarButtonItem
4) Check View Hierarchy

1)尝试为BarButtonItem设置系统图标2)查看资源并填充所有三种分辨率(1,@ 2x,@ 3x)3)检查BarButtonItem的颜色4)检查视图层次结构

#2


0  

This issue happened to me and it was related to the ViewController segue properties. The segue kind was set to "Show Detail(e.g. Replace)" and changing it to Show(e.g. Push) did the trick. This is very weird because it used to work well on previous versions of Xcode but not on Xcode 9.3

这个问题发生在我身上,它与ViewController segue属性有关。 segue类型设置为“Show Detail(例如Replace)”并将其更改为Show(例如Push)就可以了。这非常奇怪,因为它曾经在以前的Xcode版本上运行良好,但在Xcode 9.3上却没有

Hope that helps!

希望有所帮助!

Main Story board pics:

主要故事板图片:

change the "kind" attribute from this:

从这个改变“kind”属性:

enter image description here

to this:

enter image description here


推荐阅读
author-avatar
迷路的小孩w
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有