TableView with Navigation bar(showing current cell on navigation bar)

Hello guys, I'm using Storyboard.
In TableView, using Navigation Controller, how can I show parent cell's name on child cell's navigation title?
For example, there are two cells in the root(the parent) cell; macOS, iOS.
macOS cell has three child cells; big sur, catalina, mojave
iOS cell has three child cells too; 14, 13, 12.

when I touch(click on simulator) macOS, it shows child cells, which are big sur, catalina, and mojave. And in this view(which shows those three cells), how can I show macOS on navigation title(macOS is parent cells).

The description of your set up is a bit hard to understand.

In TableView, using Navigation Controller,

what do you mean here ?

But a key point is that the title needs to be set in the parent class, before navigating:

Code Block
    override func viewDidLoad() {
// usual stuff
        self.navigationItem.title = "What you want \(self.whatContainsTheName)"

Another point. Is it iOS (t seems) or MacOS App ?

when I touch(click on simulator) macOS, it shows child cells, which are big sur, catalina, and mojave. And in this view(which shows those three cells), how can I show macOS on navigation title(macOS is parent cells).


TableView with Navigation bar(showing current cell on navigation bar)
 
 
Q