Created
December 29, 2010 18:52
-
-
Save thekarladam/758883 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
CGFloat CGContextShadowOrientationYMultiplier() { | |
static CGFloat sharedMultiplier__ = 0.0; | |
if (sharedMultiplier__ == 0.0) { | |
// feel gross | |
CGFloat osVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; | |
sharedMultiplier__ = (osVersion < 3.2f) ? 1.0 : -1.0; | |
} | |
return sharedMultiplier__; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment