Skip to content

Instantly share code, notes, and snippets.

@augustjoki
Forked from thekarladam/gist:758883
Created December 29, 2010 19:33
Show Gist options
  • Save augustjoki/758941 to your computer and use it in GitHub Desktop.
Save augustjoki/758941 to your computer and use it in GitHub Desktop.
CGFloat CGContextShadowOrientationYMultiplier() {
static CGFloat sharedMultiplier__ = 0.0;
if (sharedMultiplier__ == 0.0) {
NSString *version = [UIDevice currentDevice].systemVersion;
sharedMultiplier__ = ([version compare:@"3.2"] == NSOrderedAscending) ? 1.0f : -1.0f;
}
return sharedMultiplier__;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment