My first viewController has a uitableView inside with a segue made on storyboard dragging the cell to the next view and selecting "show".
On the first viewController the navigation bar shows up just fine.
The push works perfectly on iOS 8, coming from the right side.
On iOS 7 it seems like the push is working on MODAL style, the next view controller comes from the bottom and the navigation bar is gone!
Anyone seem something like that?
Change your segue type to "Push" in Deprecated section. Look at the attached screenshot
Related
As you can see - i selected show but on main storyboard and in app it works like modaly.
What's wrong with it?
Even if i change to any other option, it works modally!
Edit: If i add button and segue to other view - it works always modally to even if i change this value.
For appearing with "Back" button in the navigation bar, you need to use Navigation Controller at first. In order to can push inside.
Check the image, Now it will be handled to push inside the stack of the view controllers of the navigation controller.
I am new in iOS development and in Swift. I have a question. I added in one of the ViewController NavigationController. But I have some problems with back button cause it doesn't appear on other Views. I tried with self.pushViewController() and with self.present() but it doesn't work. If I mark in NavigationController Is Initial View Controller then everything is fine but I don't want it because then app starts with this screen(where I have NavigationController).
Please help me, what I should to add or to write?
This is an image of my storyboard
And this is what I have if I run and go to another ViewController, as you can see I don't have navigation bar and back button.
You got 2 options :
1) Add a navigation controller in the root ViewController, Hide throughout except the last one. Make sure you push the last VC so Back option will be there by default
self.navigationController.pushToViewController(BarCodeViewController)
2) Use a custom View on top of last viewController add a custom button to that view. But this time present it from previous ViewController
self.present(BarCodeViewController)
when back button clicked dismiss it by adding target to the button. self.dismiss()
I'm working on a new iMessage app and am seeing some weird behavior. When I expand the app from compact to expanded the navigation bar disappears. To simulate it create a controller thats embedded in a navigation controller. Have it segue to another controller and in compact it acts normal with a back button. Expand it and the navigation bar is missing. I did the segue with a button tap and doing the flow when everything is expanded still has the issue.
There seems to be a bug in iMessage. This worked for me
https://agilewarrior.wordpress.com/2017/06/13/how-to-deal-with-imessage-navigation-bar-covering-top-of-view-bug/
I am new to iOS development and have not tried this programmatically yet. I would prefer to get this working in a storyboard.
I'm following this somewhat outdated tutorial from XCode 4.5 in XCode 6.1 to create a series of views connected by one navigation controller.
http://youtu.be/rgd6mCuzlEc
Once I create the second view controller, I am unable to double click the navigation bar to change the name and I am unable to add a bar button to it.
I have a Segue going from bar button "Item" from view 1 to 2. Notice in the "View Controller Scene" there is no navigation item. If I add any elements to the view controller they fall under "View" and not under "View Controller", unlike view controller 1 where it falls under "one".
Is this a limitation on XCode? Am I using the wrong Segue (Show)? Is there a hidden setting or customization I'm missing?
I actually have this working for 2 view controllers and failing the 3rd in a separate project but I don't know what I did to do that so I'm pretty sure it's possible I just cannot reproduce..
EDIT: Workaround Instead of the new adaptive SHOW segue, use the deprecated PUSH segue, add the bar button items, then change back to the adaptive SHOW segue.
Try adding a Navigation Item to the controller and it should work properly
I would like to create the following navigation
I have a tab bar program build with storyboard
and I have a View controller with buttons
when I click a button A navigation controller is called
Right now I have made all the connections and everything works fine but..
in order to create the change from the button to the table view I am using modal segue and that removes my tab bar.
I know that push will not work cause its not a navigation but how can I work this out?
I had the same problem but I realized that the best option is do it using a push segue. It's the best option because when you have a table view into a tab bar item it's more usability, it's what customer want. I'm sorry for not solution your problem but I strongly recomend you to use push.