Skip to content

Instantly share code, notes, and snippets.

@kamiyam
Created March 31, 2010 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamiyam/350013 to your computer and use it in GitHub Desktop.
Save kamiyam/350013 to your computer and use it in GitHub Desktop.
public override void DidRotate( UIInterfaceOrientation fromInterfaceOrientation )
{
Console.WriteLine("DidRotate-oreginal: " + fromInterfaceOrientation);
Console.WriteLine("DidRotate-now: " + InterfaceOrientation);
switch ( InterfaceOrientation )
{
case UIInterfaceOrientation.LandscapeLeft:
case UIInterfaceOrientation.LandscapeRight:
//Landscape
break;
default:
//Portrait mode
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment