tezvyn:

Explain UIKit MVC and the Massive View Controller problem

Source: interviewbeginner

WHAT IT TESTS: understanding UIKit's core pattern and its pitfall. OUTLINE: Model holds data, View displays it, Controller mediates between them; the view controller accretes networking, parsing, and logic into a Massive View Controller.

WHAT IT TESTS: whether you understand UIKit MVC and why view controllers bloat. ANSWER OUTLINE: the Model owns data and business rules, the View renders and forwards user actions, and the Controller mediates, updating the view from the model and vice versa; in UIKit the view controller couples tightly to views, so developers dump networking, parsing, delegate conformances, and logic into it, creating the Massive View Controller; mitigations include extracting view models, services, and child controllers.

Read the original → interview

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Explain UIKit MVC and the Massive View Controller problem · Tezvyn