/ Published in: Objective C
Expand |
Embed | Plain Text
//Crossfading between two images CABasicAnimation *crossFade = [CABasicAnimation animationWithKeyPath:@"contents"]; crossFade.duration = 5.0; //UIImage crossFade.fromValue = image1.CGImage; //UIImage crossFade.toValue = image2.CGImage; //Perform the crossfade [_imageView.layer addAnimation:crossFade forKey:@"animateContents"]; //Set the background image [_imageView setImage:image2];
You need to login to post a comment.
