Created
July 17, 2008 20:38
-
-
Save lansing/16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
@lansing idk I sorted them on the search or sth. I was a lil bit high and entered gist for some reason. Thanks for the even older gist 💠
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ayo is this the first gist?