Skip to content

Instantly share code, notes, and snippets.

@kenshin03
Created June 13, 2016 04:13
Show Gist options
  • Save kenshin03/3201dbac2a070403d275a0a234c8e7fb to your computer and use it in GitHub Desktop.
Save kenshin03/3201dbac2a070403d275a0a234c8e7fb to your computer and use it in GitHub Desktop.
[UIView animateWithDuration:40.0f
delay:0.0f
options:
UIViewAnimationOptionCurveLinear |
UIViewAnimationOptionAutoreverse |
UIViewAnimationOptionRepeat
animations:^{
[UIView setAnimationRepeatCount:10];
CGAffineTransform moveRight = CGAffineTransformMakeTranslation(20, -100);
CGAffineTransform zoomIn = CGAffineTransformMakeScale(1.5, 1.5);
CGAffineTransform transform = CGAffineTransformConcat(zoomIn, moveRight);
imageView.transform = transform;
} completion:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment