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.
Related
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?
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?
I am trying to create an iPad app wherein I need to maintain a split view throughout the app. In the split view, the left view is static and the rightview changes according to the selection of left view. The right view in turn might contain toolbars through which I can navigate to new views, But the left view always remains same.
I might have gone in with a split view but the problem is the left view is not table view but I want to use a customised view here. Is it acceptable to do this?
Please suggest if there are any better ways make a split view without using the default split view controller.
A split view controller can have any type of view in each of its 'panes', the standard template has a table view but there is no requirement to do so. Start with the template and then edit the master view controller so it's a subclass of UIViewController, you can also remove or edit the XIB as you require.
I am familiar with the split view controller for the iPad but I was wondering if there was a way to have two levels of that. What I want is a tab bar where I pick a category. What is then shown on the left side of the split view is a sub-category and then when I select that I want to display the items in a table view that fit those two. Once a user selects an item then the right side of the split view will show the details about that item.
Can this be done? If so, an example would be greatly appreciated.
You can definitely drill down through table view controllers on the left side of a split view. The master view controller is usually wrapped by a navigation controller so you can simply push new table views until you get to the lowest-level category, then have it update the detail.
I am trying to get a good idea of a good way to add items to a split view for iPad. My idea was where you tap the plus button and the table view scrolls down (quickly) to below the table that is there to a screen where you can enter in the new stuff. Then when you click done it zooms back up to the main table.
Is this possible and/or what is a better way to do a addition for a split view with a table to the left?
the point of using a split view is to flatten the heirarchy of doing things with a table view (basically), so why not when you hit the add button, have a view come up in the detail view (the right hand side) with fields to edit and etc? Or use a popover controller to display the 'add cell' view.