public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. SceneView.StartAnimating(); _sceneRenderer = new SceneRenderer(); SceneView.DoRender += _sceneRenderer.Render; // TODO: Start/Stop animating as we resign or become active }
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(); _sceneRenderer.Dispose(); _sceneRenderer = null; SceneView.DoRender -= _sceneRenderer.Render; }