I’m working on a new application that will hold a “main view” leading to another view when clicking on buttons in the main view.
I’m not sure which template to choose as a starting point: Window Based Application or View Based Application.
Can someone explain the differences between them?
What should I take into consideration when selecting between the two?
In your case, I would use the View Based Application. The difference between window and view is that the window template does not create a view controller class and related user interface file (.xib). It just gives you a blank window. In iOS there can only be 1 window, but multiple views can be presented on that window.
The View based template does everything that the window based template does PLUS it creates a view controller class and that class’s xib file. In addition, it adds that first view controller to your window. In iOS, when you want to show another view, you’ll almost certainly want another view controller class. View controller classes can add additional views on top of themselves with ease.
Since the Window template gives you 0 to start with and the View template gives you 1 to start with and you’ll eventually need 2 for your two views, it’ll be less work for you to start with the View template.