Proxy Design Pattern

In this post we talk about the Proxy design pattern and a simple example how to use it, in this case, in iOS applications to prevent retain cycles in an effective and clean way.

What is the Proxy design pattern?

As defined in the book Design Patterns by Gamma, Johnson, Vlissides, Helm and collaborators, the proxy design pattern is defined:

Provide a surrogate or placeholder for another object to control access to it. It makes consumers believe they’re talking to the real implementation.

--

--

Jesús Alfredo Hernández Alarcón

Software Engineer with experience in mobile development using mainly agile methodologies. Experience with all Apple ecosystem.