iOS top left back button without visible navigation bar
NickName:charelf Ask DateTime:2019-11-23T19:38:05

iOS top left back button without visible navigation bar

I am developping an iOS application with UIKit and a Storyboard in Xcode 11.1.

I have a ViewController (embedded in a Navigation Controller) that contains a fullscreen MKMapView. I would really like this MKMapView to take as much space as possible, so I choose to hide the navigation bar of the Navigation Controller. However from the View Controller I push another View Controller, but as the navigation bar is hidden, this pushed View Controller has no back button in the top left corner because the previous View Controller has no / a hidden navigation bar.

How can I make the back button on the pushed View Controller visible without having to make the navigation bar on the View Controller it is being pushed from visible?

I would not like to hardcode some button on the second, pushed View Controller, as it is also accessed by other View Controllers, which have a visible navigation bar and thus the back button is shown for them

Here is a small diagram that shows my setup. enter image description here

Copyright Notice:Content Author:「charelf」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59007195/ios-top-left-back-button-without-visible-navigation-bar

More about “iOS top left back button without visible navigation bar” related questions

iOS top left back button without visible navigation bar

I am developping an iOS application with UIKit and a Storyboard in Xcode 11.1. I have a ViewController (embedded in a Navigation Controller) that contains a fullscreen MKMapView. I would really like

Show Detail

Use iOS 7 swipe from left border in Navigation without Top Bar

I am currently working on an app that has two or more views and I want to swipe around between them. Right now I'm using a Navigation Controller. Unfortunately if I use push to swipe to another vie...

Show Detail

iOS Push Navigation Controller, without a bar on the second view

I have an iOS App, designed within a UINavigationController. One of the pushed view controllers, however, needs a full screen view, without the navigation bar on the top. (to get back, there is jus...

Show Detail

Navigation bar custom back button

I would like to add rounded background color to my custom navigator bar back button: I have transparent Navigation bar and on some of the screens this button is not visible. But, there are other s...

Show Detail

ios hide text of left navigation button

I need to show only arrow button and hide text of left navigation button. According to this link, I can do like this. But if I do like that, slide to go back feature will be destroyed. self.

Show Detail

navigationController bar back button missing in iOS 5

I upgraded to XCode 4.2. When my app is run in the iOS 4.0 simulator, the navigation bar is displayed on multiple views that are pushed into. When the app is run in the iOS 5.0 simulator and on a

Show Detail

hide and show left navigation bar button on demand in iOS-7

I added my left navigation bar button using the storyboard. but I want it to hide when I first load the screen. And then in response to something else, I want it to show. The navigation bar has a m...

Show Detail

How to create Navigation bar with back button to the left?

In my app I am trying to navigate from the Second ViewController to the First ViewController using a Navigation Bar Back Button, but while dragging and dropping the navigation bar onto the ViewCont...

Show Detail

How to immediately apply tintColor to iOS navigation back button text

I'm working on an iOS application that allows a user to change the primary accent color. When the user selects the accent color, all currently displayed elements that contain the accent color need ...

Show Detail

iOS Navigation Bar: change left bar button from menu to back

I have an app that uses a side menu and has a few main screens that can be accessed from the menu and others that can only be accessed from these screens. What I want is to have a menu button on the

Show Detail