Disposing objects passed in PrepareForSegue

JaymeEdwardsJaymeEdwards USMember ✭✭
edited November 2016 in Xamarin.iOS


I have a ViewController that uses an API to get some data. It stores the results as a public property. In PrepareForSegue to another ViewController, that target ViewController also has the same public property. I set the value of the property on the target to the property of the current controller (the one that made the API call).

Do I need to add a WeakReference for these? No right, since they are managed classes and don't have unmanaged resources under them?

Hopefully I'm explaining that right.

Sign In or Register to comment.