Guest User

Untitled

a guest
May 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public override void DidRotate( UIInterfaceOrientation fromInterfaceOrientation )
  2. {
  3.  
  4. Console.WriteLine("DidRotate-oreginal: " + fromInterfaceOrientation);
  5. Console.WriteLine("DidRotate-now: " + InterfaceOrientation);
  6. switch ( InterfaceOrientation )
  7. {
  8. case UIInterfaceOrientation.LandscapeLeft:
  9. case UIInterfaceOrientation.LandscapeRight:
  10. //Landscape
  11. break;
  12. default:
  13. //Portrait mode
  14. break;
  15. }
  16. }
Add Comment
Please, Sign In to add comment