Search code examples
uinavigationcontrolleruinavigationbaruisplitviewcontrolleruistoryboardsegueuinavigationitem

Back button is not showing in navigation bar?


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.

enter image description here


Solution

  • 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).