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名似乎有效但当方向处于横向模式时我无法改变它。 非常感谢。     
已邀请:
有一些方法可以在没有私有API的情况下执行此操作,并且我自己构建一个允许我使用任何UIView,而不仅仅是具有Page Curl效果的CALayer。你最好的选择是使用Leaves,或者来自Github的PageCurl。它们预先计划用于图像,PDF和简单图形。     

要回复问题请先登录注册