简体   繁体   中英

I can not add navigation item to navigation bar

I add a Navigation Bar to an view, I noticed that there is no left side arrow(Navigation Item). so I drag a Navigation Item from library to Navigation Bar, the green mark "+" displayed, but the Navigation Item was not added to the Navigation Bar actually.

Welcome any comment

Thanks interdev

Does your navigation bar have a stack? Even without using it in a UINavigationController , you can maintain a stack of navigation controllers. I suspect that the "Back" button will only display if there's something behind your current view controller. So, try the -setItems:animated: method on your navigation bar and see if putting something behind the current view helps.

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