I am new to programming, programming iphone apps in particular. After reading a bunch of MVC, I decided to try it in a small application. As for my understanding, MVC works as follows:
Model: data, data processing, data extraction. ViewController: formats data from a model (NSDate for a specific style), etc. View: actual gui.
If this is truly the correct formulation of the basic theory of MVC, my confusion is how the data is transferred between the model, VC, and view. Example: if I make calls to twitter and receive data in the model, how I (correctly) pass this information to VC for further work. I know that between VC and View IBOutlets are mainly used. The model is my real problem.
In my last application, I made the NSString variable in the application's delta so that I could access this data from any class. However, I read that this is not the best approach when the application becomes complex, because the delegate is responsible for starting, terminating the application, and not storing data.
I read about delegation methods, singleton's, NSNotification (which I used to call methods in other classes). The problem is that I really donβt understand how to use these methods to transfer data from the model to other views.
Please let me know if my question is unclear.
source share