I really like the pattern for MVCS and I am trying to use it for a small app that is interacting with a web service via JSON data format.
In contrast to the example in chapter 28, the web service I am accessing needs some login information beforehand using a HTTP POST request with login and password information.
Technically, I have no issues with this but regarding the store setup I have some design questions.
I would like to do the login during the init procedure of the Store class. If the login fails for whatever reason, I would like to display an alert view.
the login information (username, password) are entered in a separate controller and then stored via NSDefaults. Is it a good solution to read the login information in the Store via NSDefaults or should this information be passed explicitly to the store?
I would appreciate any comments.
Thanks a lot