- (IBAction)doUIViewAnimation:(id)sender {
UIButton *button = (UIButton *)sender;
NSLog(@"tag = %li", (long)button.tag);
switch (button.tag) {
case 1:
[UIView transitionWithView:self.view duration:1.5
options:UIViewAnimationOptionCurveEaseOut | UIViewAnimationOptionTransitionFlipFromLeft
animations:NULL completion:NULL];
break;
case 2:
[UIView transitionWithView:self.view duration:1.5
options:UIViewAnimationOptionCurveEaseOut | UIViewAnimationOptionTransitionFlipFromRight
animations:NULL completion:NULL];
break;
case 3:
[UIView transitionWithView:self.view duration:1.5
options:UIViewAnimationOptionCurveEaseOut | UIViewAnimationOptionTransitionCurlUp
ios开发——视图动画(过渡动画)
最新推荐文章于 2022-08-08 14:57:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)