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
Related
I have couple of sections in UITableView.
I make a slide-out menu with some items that are the names of sections in table.
How to show the section respectively with item tapped in menu.
Thanks!
In your UITableView controller you need to reset the setFrontViewController for navigate relative controller after tapped item.
I have a collectionView in my app that when the user taps one cell of it, the collectionView will reload data, in detail, I have an album that it could contain another album when user choose one of them it shows albums inside of that.
Now I want when user click on backBarButton the past data appears on collectionView (super-albums), but now backbarButton shows the past VC.
I use navigationController and show module segues between VCs.
Q: How should I implement that?
If your changing view on collection cell press. you can reload the collection view on viewWillAppear.
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?
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 new in objective C. In my app I had created splitviewcontroller, first view is master view followed by detailview. In master view row I have some lists of thumbnail of data like images, pdf files, folders etc..
What I want to do when we select on row of masterview which have image thumbnail, the image will be displayed in detail view. Like same when we select on pdf(document) thumbnail in the row it open in detailview, but when we select on row which contains folder it will navigate in masterview to open new table view.
Best for this will be to use a delegate pattern.
When element is selected in the left view, call the delegate to notify the right view that it should show image of selected item - you can also pass item itself to detailed view, just in case you need more data later.