使用过渡,UIModalTransitionStyleFlipHorizontal似乎在初始化时从右向左翻转,在返回时从左向右翻转。

有什么办法可以使它变成相反的方向吗?

最佳答案

尝试此操作...先过渡视图,并在完成时过渡,然后显示模态视图控制器(未设置动画)

ModalViewController *modalViewController = [ModalViewController alloc] initWithNibName:@"ModalViewController" bundle:nil];
[UIView transitionFromView:self.view toView:modalViewController.view duration:0.75 options:UIViewAnimationOptionTransitionFlipFromLeft completion:^(BOOL finished){
    if (finished) {
        [self presentViewController:modalViewController animated:NO completion:nil];
    }
}];

关于iphone - iPhone Modal View 过渡。相反的方式?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3140605/

10-13 06:07