I read about the MVC and looked at a couple tutorials. When I start a new iPhone project and make it WindowBased and call the project Basic. I get the BasicAppDelegate.h, BasicAppDelegate.m and a MainWindow.xib
So in this example the MainWindow.xib would be my V in MVC for my view. I then create a new Class a UIViewControllerSubClass and call it lets say FirstPage. So now I just created FirstPage.h, FirstPage.m and FirstPage.xib
Now FirstPage would act as my AppController? Or maybe a better name would be FirstPageAppController. So this this would be the C in MVC since it is my Controller.
Now I get lost with the M in MVC. What I read and have seen says that the Model and the View never talk to each other directly but they talk to the controller. But most sample I have see people write code in the AppController and the View talks to that Controller? So there is no M in MVC? just a VC.l or is my AppDelegate my Controller?
In this YouTube Video from Standford University, he is writing all the code in the AppDelegate http://www.youtube.com/watch?v=ZKOgBuELA8E&feature=relmfu and using the MainMenu.xib to add sliders, buttons and so on? I am confused?
So in this example the MainWindow.xib would be my V in MVC for my view. I then create a new Class a UIViewControllerSubClass and call it lets say FirstPage. So now I just created FirstPage.h, FirstPage.m and FirstPage.xib
Now FirstPage would act as my AppController? Or maybe a better name would be FirstPageAppController. So this this would be the C in MVC since it is my Controller.
Now I get lost with the M in MVC. What I read and have seen says that the Model and the View never talk to each other directly but they talk to the controller. But most sample I have see people write code in the AppController and the View talks to that Controller? So there is no M in MVC? just a VC.l or is my AppDelegate my Controller?
In this YouTube Video from Standford University, he is writing all the code in the AppDelegate http://www.youtube.com/watch?v=ZKOgBuELA8E&feature=relmfu and using the MainMenu.xib to add sliders, buttons and so on? I am confused?