Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- }
Add Comment
Please, Sign In to add comment