Skip to content

Instantly share code, notes, and snippets.

@lansing
Created July 17, 2008 20:38
Show Gist options
  • Save lansing/16 to your computer and use it in GitHub Desktop.
Save lansing/16 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous revised this gist Nov 14, 2010. 2 changed files with 11 additions and 3 deletions.
    11 changes: 11 additions & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
    if (orientation == UIInterfaceOrientationLandscapeRight || orientation == UIInterfaceOrientationLandscapeLeft ) {
    NSLog(@"Landscape");
    self.pageWidth = size.width;
    self.pageHeight = size.height;
    }
    else {
    NSLog(@"Portrait");
    self.pageWidth = size.height;
    self.pageHeight = size.width;
    }
    3 changes: 0 additions & 3 deletions yayo.rb
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    class Ayo

    end
  2. lansing created this gist Jul 17, 2008.
    3 changes: 3 additions & 0 deletions yayo.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    class Ayo

    end