本文共 413 字,大约阅读时间需要 1 分钟。
flip动画前后转3D功能
CATransition *animation = [CATransition animation];
animation.duration = 1.5;
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
animation.type = @"oglFlip";
animation.subtype = kCATransitionFromRight;
[weakself.coverImageView.layer addAnimation:animation forKey:nil];