Switching between data in detail view of parent table view - ios

So I have a UITableView that navigates to a detail view when a cell is selected. Each cell and it's detail view passes through different data depending on which cell is selected. (On the storyboard it is one generic detail view)
For example I have three choices on the tableview: Page One, Page Two and Page Three. When I pick Page One for instance, there will be a button on the detail view which would allow me to go to the next page - Page Two, and if I selected Page Two the button would bring me to Page Three and so on.
I am not switching between different UIViewControllers, I am switching between the data that is passed through from the table view. How can I do this?

Related

How do i get the title of a table view cell in a different view controller in xcode?

I'm currently using a table view and table view cells in a menu. When you click on one of the cells, it uses a segue inside storyboard to take you to a different view controller depending on which cell you click. They are all different links and the same view controllers except that I change which link opens on which view controller. I know this defeats the purpose of OOP because I'm having individual view controllers do pretty much the same task instead of not having one link opener view controller. How do I get the names of the table cells dynamically in the view controller after a segue?

How to save UITableView state for different Items

I want to show a ViewController where it has two UIViews, just like finder in Mac.
The left view contains a tableview with items.When user selects an item the right view displays tableView with related data.
So the next requirement is that which ever tableView is shown on the right side is editable for selection of sub items in rows and once the editing is done it should keep its state, so that on selecting the second item and re-selecting the first item, the tableView should show all the selected sub items.
You can refer - https://www.raywenderlich.com/94443/uisplitviewcontroller-tutorial-getting-started
That is called splitviewcontroller or master detail controller

TableView with detailed view

I little confused with configuring detailed view with MMDrawerController and without navigation controller.
I have TableView with custom cells inside ViewController. When users presses cell i want to show another ViewController with details about selected item. For this case i use didSelectRowAtIndexPath method from my tableview.
There are many cells in my table, that is why when user presses "back" button on detailed view i want to navigate to selected cell not to the top of table. What types of segues i should use?

Navigate between detail views of a table view controller

So I have a UITableView that navigates to a detail view when a cell is selected. Each cell and it's detail view passes through different data depending on which cell is selected. On the storyboard it is one generic detail view with a text label and an image view that loads in data from an array.
What I want to do is navigate from the current detail view to the next detail view (for the next item in the table) without having to go back to the main table view controller. How can I do this? I would like to do this with a button.
I have looked at this but I can't seem to get it right/not sure it's exactly the same thing: Navigate between sibling detail views of a parent table view

Filter Table View with buttons iOS

I have two different view controllers containing one table view each, which parses JSON and displays data in the table.
What I want is two buttons where I can filter the two different table views. If I click for example Button 1, I want the table view to load view the table view from view controller 1.
If you don't understand what I mean you can check out this app screenshot:
That's exactly how I want it.

Resources