Re: Action on Pop
Hey Rick,toggle quoted message Show quoted text
Pass a reference to the data model to the incoming view controller as it’s initialized for pushing onto the stack. The view controller can then make changes to the model as they happen, and doesn’t need to care about its own life cycle.
Deinit is, as you acknowledge, very much the wrong way to do it, in part because its effect relies on assumptions about memory management (which is conceptually unrelated to the business of the view controller).
On Apr 28, 2020, at 3:58 PM, Rick Aurbach via groups.io <rlaurb@...> wrote: