Can't delete back button in navigation bar - swift

I have this implementation in my app:
When I click on "Vendi libro" button, it performs "show segue" and goes to Sell Book View Controller; in this View Controller there is a Navigation Bar with the "MenĂ¹" button inherited, so I can return to the MenĂ¹ View Controller.
Then, if I click on "scan" button it goes to Scanner Controller and also here there is the "back" button to return to Sell Book View Controller.
With ScannerController I scan a QR Code and than return to Sell Book View Controller and here there is the error: in the navigation Bar there is the "back" button to return to Scanner Controller but I want the old "menu" button. How can I have it? Hope to be clear with my explanation

Related

Tab Bar Controller won't show Tab Bar Item in Swift

I have created a Tab Bar Controller in Swift, but the Tab Bar Item will not show up. The tab bar view controller is being opened from another view controller via a segue between the other view controller (not a UIButton, but directly from the view controller) and the tab bar view controller. I feel like this has something to do with it, but I am not sure. Here is an image of my storyboard in Xcode:
You need Two Segues Here From Your Very First Screen
Segue 1 : Navigate to Get Start Screen Where submit Button is connected on click of Get Started Button
Segue 2 : Navigate to TabBarController Directly on click of Go Directly Button
Segues From GetStarted Screen
Segue 1 : Navigate to Tab Bar Controller on click of Submit Button
Note
-> You had Connected a Segue From veryFirst Screen to GetStarted Screen Thats Correct
-> From GetStarted Screen you had connected a Segue to First TabBar Screen instead of TabBar controller
Expected Output
Navigate through Get Started Screen
Navigate Directly

Is an extra navigation controller required for every succeeding view controller with bar button items?

I'm not having any technical troubles but I was wondering if there was a better way to do this in interface builder, considering adding a new nav controller looked repetitive and unnecessary. When I add another view controller to the nav hierarchy (through a Show segue), and then try to add a bar button item, I can't until I embed the view controller in a new nav controller. Here's what I mean:
Unable to add Bar Button Item:
Able to add Bar Button Item:
You don't have to embed each view controller into its own nav controller. For each view controller down the line of one navigation controller, drag a Navigation Item onto the navigation bar. You can then add bar button items and a title.

Navigation bar object in xcode 5 not showing back button and has no functionality

I have been trying to properly setup a navigation bar in one of my View Controllers for an hour now and have not found any working solutions.
I control-clicked on a button on my app's initial view controller(1st VC) and dragged to another view controller(2nd VC) and selected "modal" as the action segue.
I then added a navigation bar item to my 2nd view controller.
When I run my app on my iPhone, I can tap on the button on my app's initial screen and it will take me to my 2nd VC, and the 2nd VC does display the navigation bar, but the navigation bar does not have the default iOS 7 back arrow to let me go back to the app's initial VC.
I was under the impression that this could be setup exactly like I did above and that the back button functionality would be included by default.
Am I completely lost? Do I need to further customize navigation bar programmatically or with a tick box in the attributes inspector? Is "modal" the wrong action segue option?
I basically just want to have navigation bars at the top of a couple of my VC's so that the user can easily get back to the app's initial screen.
Thanks for the help.
Since you are presenting your second screen (2nd VC) as MODAL from your first screen (1st VC), you will not see the back arrow button on navigation bar. Your understanding about back button works for Navigation view controllers (push segue). For MODAL you need to put a cancel button on second VC's Nav bar and put a dismiss action for that.

Home View in UITabBarController

I have a starter UIView and if user clicks the button in starter view present a tabbar model view. In that view, I have a tab bar controller with 4 items as the first one "Home" tabbar item where if user clicks it dismisses the tabbar controller view and go back to the start view (so when tabbar view is loaded it starts with the second tabbar item). My question is: how can I dismiss the tabbar controller when user clicks the home tabbar item.
Ehm I think this is against guidelines and would advice you to try a different approach. However, you could make the home button load a view which class has [self presentModalViewController:starterViewController animated:NO]; in viewWillAppear

How do you create an invisible button that covers the whole screen including navigation controller?

I have a simple tableview that navigates to a detailed view with a navigation controller. In the detailed view I need to create a button which when pressed isolates all other buttons displayed on the screen including the navigation controller back button. I know how to get the invisible button to cover most of buttons the screen but I can't get it to cover the navigation controller back button as this has been created in the parent view. How do I pop it over the top of the navigation controller from the detail view?
You can insert the button as a direct subview of the key window.
[[UIApplication sharedApplication].keyWindow addSubview:theButton];
(why not use an UIAlertView or UIActionSheet?)