Skip to content

Instantly share code, notes, and snippets.

@koromiko
Created October 11, 2013 06:09
Show Gist options
  • Save koromiko/6930257 to your computer and use it in GitHub Desktop.
Save koromiko/6930257 to your computer and use it in GitHub Desktop.
dissolve image transition
self.imgeView.image = xxxx;
CATransition *transition = [CATransition animation];
transition.duration = 1.0f;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionFade;
[self.imageView.layer addAnimation:transition forKey:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment