UINavigation Controller in Swift 3, Xcode 8 - uitableview

In Swift 2 (Xcode 7), we drag Navigation Controller from object library. We got Navigation Controller + View Controller.
In Swift 3 (Xcode 8), it is not like that. We only get Navigation Controller + Table View Controller.
So, in previous version , we can connect view controller to any swift file we define.
Now, it changes to Table View Controller.
So, we cannot connect swift file to table view controller. This is a major changes in Xcode 8?

You can add navigation controller to any view controller by selecting one and go to Editor -> Embed In -> Navigation Controller.

Related

Load Navigation Bar in Swift with .xib file

I am learning to program in Swift 4, and I have no problems with the code, but I am working on a project using MVC with XIB design files. A NavigationBar is added to a view, but it does not load the back button to the left of the title.
This is what I want:
Currently, I only have this:
I have not seen your code but it seems you do not have navigation controller.
Add a navigation controller on your storyboard and connect your view controller to it (use segue).
You can use this to learn more about navigation controller: https://developer.apple.com/documentation/uikit/uinavigationcontroller

Can't see Top Navigation Bar on Root View Controller

I am trying to build a Universal iOS APP. I just started with root view controller and trying to display Navigation Bar on top.
Navigation Bar is visible on Xcode 6 preview mode, along with title that I added, but no matter what I do, it's not visible on the simulator.
How can I show the navigation bar on simulator?
Am using XCOde 6 & iOS 8. Forgot to mention that I am not using Navigation Controller & instead, am using the first view controller as the root view controller.
Actually, I don't want to use Navigation Controller as the root view controller, because it then takes control on all the pages, which I don't want. What if I want to change the back button the way i like, can I do that with Navigation Controller as root view controller?
I assume that you have a similar situation:
Check that your navigation controller is set as initial view controller and visibile: just click on your navigation controller and on your right:

iOS 8 Navigation Bar Not Accessible in Second ViewController on Storyboard

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

How to add a navigation bar and a backbutton in it in my xCode 4 application?

I have a simple app with 3 tab items and a view for each of them. How can I add a nav bar which shows only the name of the current view, and a backbutton to appear when I go to another page, and not in the first one which shows when I open my app?
You'll need to add a UINavigationController as the root for each of your tabs, with the existing view controllers each set as the respective navigation controller's root view controller.
See the View Controller Programming Guide for more details: http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/Introduction/Introduction.html

Multiple Push Segues to One View Controller in Storyboard

I have an application in Xcode 4.6 that uses storyboards. The root view controller is embedded in a navigation controller, and all view controllers in the application are accessed via push segues via the navigation controller.
I ran into a complication when I wanted to have one particular view controller (called photos) accessed via a push segue by two different view controllers. I ended up with what appeared to be a navigation controller inside a navigation controller in the photos controller after I added the second segue. The goal is to just have (in photos) one navigation bar with a dismiss button that (when pressed) pops back to whichever of the two view controllers presented the photos view controller. I am somewhat new to iOS and I am not sure of the best way to accomplish this or how to generally handle this situation.
Here is a picture of my storyboard for reference:
You should really do it programmatically using SotyboardID. It's only a few lines of code in each ViewControler.

Resources