MVC design patterns

Posted by insane-36 on Programmers See other posts from Programmers or by insane-36
Published on 2012-11-09T12:22:49Z Indexed on 2012/11/09 17:20 UTC
Read the original article Hit count: 182

Filed under:
|
|

I have an application and it does not use a very good structure. However it seems to me that I have tried to stick to mvc design pattern but a senior engineer claims that I have no design patterns and code are mesh.

How I have structured the code :

I have couple of nsmanagedobject model classes which represents model in my case and a reskit library which encapsulates the nsurlconnection and url request. I fetch the request from the view controller itself and then when the request get completed I create predicate and then populate it in tableview.

Wherever I need custom view either I create it in nib or create in a custom subclass of UIView. I have use delegation pattern and notification to communication to view controller, views and block callback with restkit.

But, the senior engineer is very new to ios. He has been doing it for 2 months now but he is a good java programmer. So, what is mvc pattern ? Is core data model not working as a model objects, view controller as controller and views. I dont seem to find any other places or any other cases to create my own model object since the most of the models are used as NSManagedObject subclass.

© Programmers or respective owner

Related posts about mvc

Related posts about ios