I come from a Web Development background. I am having trouble understanding how a model is to be used in iOS development.
A model in Web Development is a separate file that Controller files access with functions such as getMysqlQueryOf(stuff);
Does iOS development use the same thing? Should I be creating a MyModel.h and MyModel.m file and including/importing this in all of my View Controllers and accessing the methods inside the model class like that?
Can you show a simple example of a Model class and how it would be accessed from a View Controller?
In my iOS experiance, UIViewControllers tend to act as islands unto themselves. The wrong approach is to put everything you would put into a model into the delegate class instead. I think your idea of a “Model” is spot on. I would create a someModel.m and a header file and give every class that needs the model a pointer to it and initialize the core model in the delegate.
IMO, iOS data flow leaves something to be desired.