I’m having a little trouble wrapping my head around this. When I go through the steps to create a new “Window based Application” project it creates a .XIB file called mainwindow.XIB I enter all the lines code to create a UITableViewController and set it as the rootViewController, and an empty table view appears when I build & run. Genius!
If I create a different type of project, (in my case I have another side project that was created as a “Single View application” project, but I want to add a UITableViewController to it and do the exact same lines of code as above, it won’t display any picture - just a black screen - when I build & run. I ripped ALL my code out, so the only things left are in every way IDENTICAL to the Window Based Application above, and no fix.
The only difference I could find between a Window Based Application and a Single View Application was the existence of a MainWindow.XIB file - so I created one of those in the hopes that it would work, but it doesn’t. The Window Based Application has an App Delegate with a connection from delegate -> Files Owner, but my Single View app doesn’t have this. I can’t figure out a way to get it in there.
I’m totally confused about how to get anything to display. I follow the code perfectly to the letter, but because my project was initially created as a Single View and not a Window Based, I’m missing that App Delegate object and I don’t see how to add it.
There must be a way I can make this work without throwing it all out and starting from scratch. If you have any advise, please help.