This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIImage* newImage = [UIImage imageNamed:context]; | |
// set up an animation for the transition the content | |
CATransition *animation = [CATransition animation]; | |
[animation setDuration:0.25]; | |
[animation setType:kCATransitionPush]; | |
[animation setSubtype:kCATransitionFromRight]; | |
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; | |
[[self.contentImageView layer] addAnimation:animation forKey:@"SwitchToView1"]; |
OlderNewer