AlvinfromDiaspar
AlvinfromDiaspar

Reputation: 6834

Cocoa Touch, which to use: Window Template or View Template?

I have another issue related to Views, and i've ended up here dealing with Views and Windows in general. My understanding of all the fundamentals of iPhone development has been turned upside down.

Can somebody explain, or point to a reference, the difference between these 2 templates?

Ex: My app doesnt show a Window in the Interface Builder. Should I have one? When should i have one and when should I not?

Upvotes: 1

Views: 495

Answers (1)

esqew
esqew

Reputation: 44711

The Window-based Application template provides just an application delegate and a window.

A View-based application will start you off with an application delegate and a window, as well as a view.

Your application doesn't show a Window because the view that you are (most likely) viewing and editing now is loaded by the Window, which is in a separate XIB.

Upvotes: 2

Related Questions