代码之家  ›  专栏  ›  技术社区  ›  topLayoutGuide

iPhone SDK-核心动画视图控制器转换,从右边缘翻转

  •  1
  • topLayoutGuide  · 技术社区  · 14 年前

    我目前正在创建一个需要非常漂亮的转换的应用程序。我希望能够;

    调用我的[Self PresentModalView ControllerAnimated:Yes];并且,我希望使用CoreAnimation强制它从右边缘翻转,而不是使用交叉分解、通用翻转或CoverVertical。注意正常翻转如何使用中心轴?好吧,我想把它从中间移到右边,使翻转的效果更像“在你的脸上”,类似于Zunehd的用户界面。

    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
        if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])
     {
                self.wantsFullScreenLayout = YES; // we want to overlap the status bar.        
         // when presented, we want to display using a cross dissolve
         self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
     }
        return self;
    }
    

    当前获取ViewController的转换集的方式。如果可能的话,我希望在这里设置CoreAnimation右边缘翻转。

    如果微软能做到这一点,它必须在iPhone上实现。有人能帮我吗?

    1 回复  |  直到 14 年前
        1
  •  0
  •   NWCoder    14 年前

    如果我没记错,锚定点或者锚定点,定义旋转的轴。我在开源的“OpenFlow”项目中读到了一些使用类似代码的代码。希望这有帮助。