简体   繁体   中英

Navigation icon is not showing in ios11 with xcode9?

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.

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:

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

This issue happened to me and it was related to the ViewController segue properties. The segue kind was set to "Show Detail(eg Replace)" and changing it to Show(eg 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

Hope that helps!

Main Story board pics:

change the "kind" attribute from this:

在此处输入图片说明

to this:

在此处输入图片说明

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