自定义模态跳转

来源:互联网 发布:日亚海淘 知乎 编辑:程序博客网 时间:2024/04/26 00:38
    self.myPushVC = [[MyPushViewController alloc] init];
    CATransition *animation = [CATransition animation];
    animation.duration = 5.0;
    animation.timingFunction = UIViewAnimationCurveEaseInOut;
    animation.type = @"pageCurl";
    animation.subtype = kCATransitionFromLeft;
    [self.view.window.layer addAnimation:animation forKey:nil];

    [self presentModalViewController:myPushNav animated:NO];



0 0