When to call ReleaseDesignerOutlets when ViewDidUnload does not exist

When should you name ReleaseDesignerOutletsstoryboards for the user interface if it is not UIViewControllerand therefore does not have a method ViewDidUnload?

Fx. I have a custom class called UITableViewCell and you want to release my outputs. I see that there is a method protected void Dispose(bool disposing), but it cannot understand whether the correct method is to override it.

+5
source share
1 answer

ViewDidUnload , . NavigationController CurrentViewController. .

public override void DidMoveToParentViewController(UIViewController parent)
{
  base.DidMoveToParentViewController(parent);

  if(parent == null && cleanupOnNavigationStackRemoval)
    Cleanup();
}


protected void Cleanup()
{
  CleanupBindings();

  ReleaseOutlets();
}
0

All Articles