Model (MVC) in frontend Builder?

In assignment CS193P for iPhone iPhone Stanford 2 (free online course), he talks step by step about adding a model to NIB via Cocoa Touch Plugin → Controllers → Object. Is this just for initialization purposes? Why can't I just create and initialize my model in a method awakeFromNib

in the controller class itself?

+1


a source to share


2 answers


You don't have to create model objects in IB. NIBs really should be exclusive to controllers and views. Then you write code to create and reference models and controllers



+2


a source


You can create the model programmatically, but I'm comfortable with IB taking care of this for me.



IB helps you create a singleton, link it to other things, etc.

0


a source







All Articles