//UIView过渡动画
- (IBAction)pressTransitionAnimation:(UIButton *)sender {
self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"1.png"]];
NSLog(@"0.0.0.0.0.%@",self.imageView);
[self.changeView addSubview:self.imageView];
//1.准备动画
[UIView beginAnimations:@"过渡动画" context:NULL];
[UIView setAnimationDuration:5];
[UIView setAnimationRepeatCount:100];
//2.设置过渡动画样式
//参数1.过渡样式枚举; 参数2.指定改变哪一个view;参数3.是否支持缓存;
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.changeView cache:YES];
//3.提交动画
[UIView commitAnimations];
}
- (IBAction)pressTransitionAnimation:(UIButton *)sender {
self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"1.png"]];
NSLog(@"0.0.0.0.0.%@",self.imageView);
[self.changeView addSubview:self.imageView];
//1.准备动画
[UIView beginAnimations:@"过渡动画" context:NULL];
[UIView setAnimationDuration:5];
[UIView setAnimationRepeatCount:100];
//2.设置过渡动画样式
//参数1.过渡样式枚举; 参数2.指定改变哪一个view;参数3.是否支持缓存;
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.changeView cache:YES];
//3.提交动画
[UIView commitAnimations];
}