Skip to content

Instantly share code, notes, and snippets.

@ajonno
Created December 18, 2015 01:02
Show Gist options
  • Save ajonno/9b9f01dbbceb182ae10f to your computer and use it in GitHub Desktop.
Save ajonno/9b9f01dbbceb182ae10f to your computer and use it in GitHub Desktop.
Release Designer Assets/Outlets - Xamarin
public override void ViewDidUnload ()
{
 base.ViewDidUnload ();
 
 // Clear any references to subviews of the main view in order to
 // allow the Garbage Collector to collect them sooner.
 //
 // e.g. myOutlet.Dispose (); myOutlet = null;
 
 ReleaseDesignerOutlets ();
}


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment