How do I replace the detail view controller of a master-detail iOS project?

When I replace the detail view controller of a master detail project for iOS with a different controller, this time a table view controller, when I run the project the detail view controller displays at startup. Anyone have any suggestions for me? I can tell the master view controller runs because print statements in the viewDidLoad of the master view controller are executed.

What do you mean exactly by replace the detail view controller of a master detail project for iOS with a different controller … the detail view controller displays at startup.


If you replaced the detailView, it cannot show. Do you mean the tableView shows ?


Could have a look on Stanford course for IOS, lesson 6 Multiple MVC where they explain how to embed controllers instead of replacing.

Yes. I mean the table view shows. The table view takes the place of the detail view in the master-detail relationship. The table view shows at startup instead of the master view.

So did you delete the detailView ?


I think you should embed the table inside the detailView.


Look at this Stanford course, that may help you.

What Stanford course? I think you forgot to type it. Is it found on iTunes University?

I found courses on iTunes University by Stanford, but I don't see how to access it. None of the courses listed allows me to click on it. I remember being able to access iTunes University in iTunes, but I can't find it now except under Store in iTunes, and then the link just takes me to iTunes website again where it shows the courses that I can't click on as I said before.

You can only access them opn IOS (iPhone or iPad).

How do I replace the detail view controller of a master-detail iOS project?
 
 
Q