How to present a UITableView and its Detail View in the same View
-
17-04-2021 - |
Question
I'd like to show in an iPad application an UITableView and the result of clicking on Cell in the same View. I'm able to show one of them, but not both at the same time. Here's the design idea:
So when I click a cell, the chart will change.
Thanks in advance, everything is welcome!
Cheers
La solution
A UITableView
can be used as a subview attached to any UIViewController
, so this shouldn't be a problem. You will need to make your view controller handle the data source and delegate methods, as well as the detail view and any other elements.
Autres conseils
What you want can be accomplish by using a UISplitViewController.
You can also take a look at the "Master Detail Application" Template provided by apple.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow