Xi Huang5 days ago
The cell, which is the View configured directly with the Model, so MVC guidelines are violated, but this happens all the time, and usually people don’t feel it is wrong. If you strictly follow the MVC, then you supposed to configure the cell from the controller, and don’t pass the Model into the View, and this will increase the size of your Controller even more.
iOS Architecture Patterns
Bohdan Orlov
88214


I couldn’t agree more about what you mentioned on the reality of MVC in Cocoa development. But, I feel like it’s not because of what Apple encourages. It’s more about whether developers have abilities to follow the MVC rule in practice especially for junior developers. As for this piece of codes, I don’t see people doing this a lot although you are right about the point of violation. Instead, what iOS developers do the most is to mix the view part with the controller part.
I was motivated by the reality as well and wrote an article about it. Hopefully, it helps iOS developers to write high quality app.