I have a program that has a list of information that when tapped it needs to take you a screen to get more information about that item. I don’t know if I need to use a Table View Controller or a Navigation Controller.
What would you recommend and why? What are the differences between the two?
UINavigationController is a ‘container’ controller. Meaning, it houses other view controllers inside of it. So if you wanted a UITableviewController inside a UINavigationViewController you could make it as such:
Then when you select the item from the table that you wish to show new information, you will ‘push’ a new view controller onto the the UINavigationController stack:
This can be done inside the
function of your UITableViewController. It will create the toolbars at the top for you, as well as the backwards navigation buttons that are expected.
This link is to the apple documentation that explains the types of view controllers, and it is definitely worth the read.