-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
[UIView beginAnimations:@"Action" context:nil];
[UIView setAnimationDuration:3];
// [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:self.girlView cache:YES];
[UIView setAnimationTransition: UIViewAnimationTransitionCurlUp forView:self.girlView cache:YES];
[UIView setAnimationRepeatAutoreverses:YES];// 反转执行动画
[UIView commitAnimations];
}
本文介绍了一个使用Objective-C实现的iOS应用程序中动画过渡效果的具体代码实现。通过UIView的动画方法,如beginAnimations, setAnimationDuration, setAnimationTransition等,来演示如何在iOS应用中创建翻转和卷曲的动画效果,并设置了动画的重复反转。
173

被折叠的 条评论
为什么被折叠?



