Skip to content

Instantly share code, notes, and snippets.

@Krxtopher
Created November 19, 2012 18:23
Show Gist options
  • Save Krxtopher/4112499 to your computer and use it in GitHub Desktop.
Save Krxtopher/4112499 to your computer and use it in GitHub Desktop.
Sample Gist 1
- (void)updateCarPosition
{
CGFloat sliderPercent = self.slider.value;
CGFloat carX = [QuadraticEasing easeInOutValueAtPercent:sliderPercent
from:self.carImageMinX
to:self.carImageMaxX];
self.carImage.center = CGPointMake(carX, self.carImageY);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment