This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1941154-fundamental-ios-design-patterns/lessons/7
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1941154-fundamental-ios-design-patterns/lessons/7
Hi! why the controller hold the strong reference to the view ?
@jrg.developer Can you please help with this when you get a chance? Thank you - much appreciated! :]
In the MVC pattern, the controller holds strong references to both the view and model. This allows it to act as a “controller” between them— handling user interactions with the view and updating the model in response, or conversely, updating the view in response to model changes.
This isn’t the only structural pattern in iOS, but it’s the most common! You’ll learn about other options (like MVVM and Coordinator) later in this and upcoming design pattern videos!
If you all wonder what is markdown render there are images, etc, we want to disable them to have plain text to avoid scrolling by - Editor → Syntax Coloring → None