使用过渡时,UIModalTransitionStyleFlipHorizontal似乎在初始化时从从右向左翻转,在返回时从从左向右翻转。
有没有办法让它以相反的方式翻转?
答案 0 :(得分:2)
试试这个...首先转换视图,当它完成时,然后呈现模态视图控制器(不是动画的)
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];
}
}];
答案 1 :(得分:0)