Search code examples
iosswifttvos

UISplitViewController with multiple detail ViewControllers in tvOS


I am trying to implement a UISplitViewController on tvOSapp which has a Master ViewController with a UITableView displaying a menu. I also have an Initial Detail ViewController assigned.

What I want to achieve is that when a row in the Master ViewController menu is clicked, the initial detailViewController should be replaced by another one.


Solution

  • That's what showDetailViewController(vc: UIViewController, sender: Any?) is for.