Back button is not showing in navigation bar?

烈酒焚心 提交于 2019-12-11 18:49:43

问题


I,m building an article read app for iPad and using split view controller.
Master view contains menu list and detail view controller contains list of article.
Clicking on list of articles it opens in a new view and i’m using a segue and navigation controller to connect detail view controller and Next view in which article opens.
Segue with Modal style.I’m facing a problem there is no back button when article opens in a next view.


回答1:


The article view is being presented modally, so there is no back button. If you change your storyboard so that you're presenting the article view with a push segue, you'll get a back button. If you want to maintain the modal presentation, you can add a UIBarButton item to the article view (ie, add a UIToolbar or embed the article view controller in a UINavigationController so that you can update the UIBarButtonItems of the navigation toolbar).



来源:https://stackoverflow.com/questions/24932237/back-button-is-not-showing-in-navigation-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!