PAGECURL ANIMATION SUBTYPE
我知道这已被问了一千次,人们会说@pagecurl会被拒绝。
我尝试与客户进行推理,但他们坚持要求推出具有该功能的应用程序并且它将有机会不被拒绝。
问题是,如果我尝试animation.subtype,动画将不会听它。即如果我在横向中具有方向模式,即使我尝试设置动画子类型,页面卷曲也将从其他位置开始。
谁知道我能做些什么呢?
代码如下:
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
// animation.subtype = kCATransitionFromTop;
if(rotation == UIInterfaceOrientationPortraitUpsideDown){
animation.subtype = kCATransitionFromLeft;
}else if(rotation == UIInterfaceOrientationPortrait){
animation.subtype = kCATransitionFromRight;
}else if(rotation == UIInterfaceOrientationLandscapeRight){
animation.subtype = ....
}else if(rotation == UIInterfaceOrientationLandscapeLeft){
animation.subtype = ....
}
animation setDuration:0.35];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
animation.type = @"pageCurl";
前2名似乎有效但当方向处于横向模式时我无法改变它。
非常感谢。
没有找到相关结果
已邀请:
1 个回复
弦砂牧扁