topical media & game development

talk show tell print

#mobile-application-12-MonoTouchOther-MonoTouchOther-MonoTouchOtherViewController.cs / cs



  using System;
  using System.Drawing;
  
  using MonoTouch.Foundation;
  using MonoTouch.UIKit;
  
  namespace MonoTouchOther
  {
          public partial class MonoTouchOtherViewController : UIViewController
          {
                  public MonoTouchOtherViewController () : base ("MonoTouchOtherViewController", null)
                  {
                  }
                  
                  public override void DidReceiveMemoryWarning ()
                  {
                          // Releases the view if it doesn't have a superview.
                          base.DidReceiveMemoryWarning ();
                          
                          // Release any cached data, images, etc that aren't in use.
                  }
                  
                  public override void ViewDidLoad ()
                  {
                          base.ViewDidLoad ();
                          
                          // Perform any additional setup after loading the view, typically from a nib.
                  }
                  
                  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 ();
                  }
                  
                  public override bool ShouldAutorotateToInterfaceOrientation (UIInterfaceOrientation toInterfaceOrientation)
                  {
                          // Return true for supported orientations
                          return (toInterfaceOrientation != UIInterfaceOrientation.PortraitUpsideDown);
                  }
          }
  }
  
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.