解决方法
Hy,这是使用默认转换来卷曲页面和指定卷曲速度的方法.祝你工作顺利.
@H_403_10@CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0f];
animation.startProgress = 0.2;
animation.endProgress = 1;
if (isGoingBackward) {
[animation setType:@"pageUnCurl"];
[animation setSubtype:kCATransitionFromTop];
}
else
{
[animation setType:@"pageCurl"];
[animation setSubtype:kCATransitionFromLeft];
}
[animation setFillMode: kCAFillModeBackwards];
[self.view.layer addAnimation:animation forKey:@"animation"];