Skip to content

Instantly share code, notes, and snippets.

@minsOne
Last active August 29, 2015 13:57
Show Gist options
  • Save minsOne/9876234 to your computer and use it in GitHub Desktop.
Save minsOne/9876234 to your computer and use it in GitHub Desktop.
- (CGAffineTransform)getTickTransform:(NSNumber *)toValue
{
CGAffineTransform transform = CGAffineTransformIdentity;
NSInteger newValue = [toValue integerValue];
CGFloat defaultAngle = [self getDefaultAngle];
newValue %= 12;
transform = CGAffineTransformRotate(transform, newValue * defaultAngle);
return transform;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment